Checkbox
Controlled or uncontrolled checkbox with indeterminate support and asChild.
At a glance
- States: unchecked, checked, indeterminate, disabled.
- Emits semantic icon via
checkmarkkey fromSemanticIconsProvider. asChildpasses control to a supplied root element.
Web preview
Native preview
Props
| Prop | Type | Default | Description |
|---|---|---|---|
checked | boolean | — | Controlled checked state |
defaultChecked | boolean | false | Uncontrolled initial state |
indeterminate | boolean | false | Visual-only indeterminate state |
onCheckedChange | (checked: boolean) => void | — | Change handler |
disabled | boolean | false | Disables interaction |
label | string | — | Visible label tied via aria |
asChild | boolean | false | Renders the supplied child as root |