Checkbox
View Source
Checkboxes are most commonly used to give users a way to make a range of selections (zero, one, or multiple). They may also be used as a way to have a user indicate that they agree to specific terms and conditions.
Props
boolean
Disables the checkbox component.
string | null
Used to label the checkbox. Checkbox must have parent label if left undefined
.
Pass null
to use as a graphical element only, please note you need to provide
additional aria attributes when doing so.
boolean
If true
, puts the checkbox in an indeterminate state.
boolean
Checks the checkbox, will be overriden if indeterminate is true
.
string
Maps to the internal input’s name prop.
mixed
Maps to the internal input’s value prop.
() => null
Maps to the internal input’s onChange
prop.
() => null
Maps to the internal input’s onFocus
prop.
() => null
Maps to the internal input’s onBlur
prop.