Checkbox
A checkbox is a component that lets the user select the value that is written in its corresponding text label. A user can select multiple checkboxes from a group at the same time.
install | yarn add @clayui/form |
---|---|
version | 3.119.0 |
Stable3.119.0View in LexiconCHANGELOG
Property | Description |
---|---|
checked boolean | Flag to indicate if input is checked or not. |
containerProps React.HTMLAttributes<HTMLDivElement> | Props to add to the outer most container. The default value is {} |
disabled boolean | Props to disable checkbox. |
indeterminate boolean | Flag to indicate that checkbox is in an indeterminate state. The default value is false |
inline boolean | Flag to display element inline . |
label React.ReactText | Text describes what the checkbox is for. |
onChange (event: React.ChangeEvent<HTMLInputElement>) => void | Callback for when checkbox value is changed. |