Components
Documentation contentCheckbox
Use checkbox for a boolean value. The element content or text supplies the visible label; label supplies an accessible name without drawing text. Bind checked to the model and handle on-toggle in update. Use radio to select one option, or switch for a sliding on/off control.
checkbox

Markup
Store a boolean in the model and toggle it in update:
Programmatic construction (Zig)
In a Zig view, the canvas.Ui builder constructs the same tree programmatically:
Attributes
| Attribute | Description |
|---|---|
text | Text value for text-bearing elements; a literal or one {binding}. |
checked | Checked state for checkbox/toggle; true/false or a {binding}. |
disabled | Disables the control; true/false or a {binding}. |
on-toggle | Dispatch a Msg on toggle: tag or tag:{payload}. Hit-target elements only (checkbox, toggle, toggle-button, switch, accordion, ...). |
