A composable checkbox with Root and Indicator sub-components. Fully headless — bring your own styles.
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 | "" |