Checkbox
Checkboxes allow the user to select one or more items from a set.
Import
Default Checkbox
With Label
Custom Color
Disabled
Controlled Component
It is recommended to use as a controlled component:
Props
Prop | Description | Type | Default |
---|---|---|---|
label | label for the checkbox | string | |
className | className for the component | string | |
defaultChecked | If true, the checkbox will be initially checked. | boolean | false |
color | Color of the checkbox | string | theme.colors.grey |
disabled | boolean | false | |
required | boolean | false |