<checkbox>
A checkbox with a label; its state goes into a variable by name.
<column style="gap-4">
<checkbox name="milk"
color="teal"
label="Oat milk"
checked="true"/>
<checkbox name="bread"
label="Sourdough loaf"/>
<checkbox name="eggs"
label="A dozen eggs"/>
</column>
Attributes
| Name | What it does | Default |
|---|---|---|
checked |
Initial checked state boolean |
false |
color |
Active color color |
|
label |
Checkbox label string |
|
name |
Variable name for form scoping string |
Readings
| Name | What it does |
|---|---|
checked |
The same as value, named after checked=. |
value |
Whether it is on, live. |
Any tag also takes gestures: @on.tap, @on.longpress, @on.doubletap and @on.swipeleft (and right, up and down). @click runs on a tap too.