Tests
Some checks failed
Lint / lint (push) Failing after 9s

This commit is contained in:
Julien Valverdé
2026-01-02 21:25:27 +01:00
parent 703b0f13d4
commit a02f63f90d

View File

@@ -20,6 +20,7 @@ export function TestUi1Component() {
Component.useSignal(buttonRef, "pressed", () => {
console.log("Pressed!")
})
const [buttonPressed] = Component.useSignalValues(buttonRef, "toggled", () => [false] as const)
return (
@@ -28,7 +29,7 @@ export function TestUi1Component() {
>
<Label
name="Label"
text="This is a label"
text={buttonPressed ? "The button is pressed" : "The button is not pressed"}
/>
<TextEdit
@@ -41,6 +42,7 @@ export function TestUi1Component() {
<Button
ref={buttonRef}
name="Button"
toggle_mode
text="Ok"
/>
</VFlowContainer>