Checkbox
Let people select several items independently or mark tasks as complete.
Recommended API
| Property or element | Type | Example initial value | Description |
|---|---|---|---|
name and value | Form attributes | tasks, per item | Group related form values while keeping each item independent. |
checked | Boolean | First task checked | Set whether each task is complete. |
States
| State | Trigger | Result |
|---|---|---|
checked | Activate an unchecked box. | The item becomes complete and is styled accordingly. |
unchecked | Activate a checked box. | The item returns to the incomplete state. |
CSS variables
| Variable | Type | Default | Description |
|---|---|---|---|
--q-text | color | #28302a | Main text and foreground color. |
--q-muted | color | #70776f | Color for secondary text. |
--q-font-size | length | 13px | Base size for the component text. |
--q-accent | color | #344e41 | Accent for active controls, indicators and focus. |
--q-space | length | 4px | Base unit for gaps and padding. |
--q-gap | length | calc(var(--q-space) * 2) | Space between items, based on the spacing unit. |