- Docs
- Components
- Checkbox
Checkbox
A control that allows the user to toggle between checked and not checked.
Preview
Code
Installation
CLI
Manual
Anatomy
Single import
Multiple imports
Examples
Disabled
Preview
Code
Group
Preview
Code
Form
Under Construction
This component is currently being built. Check back soon for updates!
API Reference
Checkbox.Provider
| Prop | Type | Default |
|---|---|---|
isSelected | boolean | |
defaultSelected | boolean | |
onChange | function | |
isIndeterminate | boolean | |
isDisabled | boolean | |
isReadOnly | boolean | |
isRequired | boolean | |
isInvalid | boolean | |
name | string | |
value | string | |
children | ReactNode |
Checkbox.Root
| Prop | Type | Default |
|---|---|---|
children | ReactNode |
Checkbox.Indicator
| Prop | Type | Default |
|---|---|---|
className | string |