Checkbox
UICheckbox input built on Radix UI with theme-aware accent color when checked.
[EXAMPLES]
Basic
[PROPS]
| PROP | TYPE | DEFAULT | DESCRIPTION |
|---|---|---|---|
| checked | boolean | "indeterminate" | — | Controlled checked state |
| onCheckedChange | (checked: boolean) => void | — | Check change callback |
| disabled | boolean | false | Disable the checkbox |
[ACCESSIBILITY]
KEYBOARD SHORTCUTS
| KEY | ACTION |
|---|---|
| Space | Toggle the checkbox |
ARIA
- >role="checkbox"
- >aria-checked reflects state