Checkbox
Form
Checkbox bound to a boolean state.
Checkbox(bind: …, checked: …, label: …)
Example
state agree = false
Checkbox(bind: agree, label: "I agree to the terms")
Renders with the class wf-checkbox, stable across releases, so a stylesheet may target it.
| Prop | Type | Meaning |
|---|---|---|
| bind: | State |
State variable the control reads and writes (two-way) |
| checked: | Bool |
Whether it is checked, when its state is not bound |
| label: | String |
Visible label; also the control's accessible name |
| disabled: | Bool |
Whether the control is inert |
Attribute families: global, aria, data, input. Plus the universal props on every element: animate:, exit:, speed:, class:, ref:.