Draft. Ported from the shadcn-vue Checkbox and restyled with Beehexa tokens. Not yet approved; the API may still change.
A box people tick to turn one option on or off, or to choose several options from a list.
When to use
- Several independent options, such as which channels sync.
- One setting that takes effect on Save, inside a form.
- Selecting rows in a table.
When not to use
- A setting that applies at once. Use a Switch.
- One choice from a few. Use a Radio group.
Tokens
| Part | Tokens |
|---|---|
| Box | 16 px (size.icon.default), radius.025, edge color.border.bold on color.surface |
| Checked | fill and edge color.background.primary (.hover, .pressed), mark color.icon.inverse |
| Focus | the Button focus ring (border.width.focused, color.border.focus, state.focus.offset) |
| Invalid | edge color.border.danger |
| Disabled | the disabled colours, never opacity |
| Click area | at least size.target.minimum (24 px) |