Component
A composable checkbox with Root and Indicator sub-components. Fully headless — bring your own styles.
View component changelogpreview
Import all parts of the component and piece them together
The root checkbox element.
| Prop | Type | Default |
|---|---|---|
checked | boolean | false |
defaultChecked | boolean | false |
disabled | boolean | false |
required | boolean | false |
onCheckedChange | function | -- |
color | string | "" |
size | string | "" |
variant | string | "" |
customRootClass | string | "" |
Renders the checkmark icon when the checkbox is checked.
| Prop | Type | Default |
|---|---|---|
className | string | "" |
| Shortcut | Description |
|---|---|
Tab | Moves focus to the checkbox. |
Space | Toggles between checked and unchecked states. |
| Reference | What Rad UI follows |
|---|---|
Uses checkbox semantics with aria-checked to expose checked, unchecked, or mixed state. |