Homecomponentsinput
Checkbox
An input that toggles between on and off states.
Use Checkbox for selecting multiple values from several options.
Disabled
Use disabled property to disable the checkbox.
Indeterminate
Use checked='indeterminate' property to visualize state between not checked and checked.
Pass a boolean array as checked property. If items include both true and false values the Checkbox will have an indeterminate state. Otherwise it'll be just checked/unchecked.
Overflowing Text
The checkbox will remain aligned to the first line of text.
API
name
Required
string
checked
Required
CheckboxValue
children
Required
ReactNode
id
string
value
string
required
true
false
disabled
true
false
bordered
true
false
onChange
((value: boolean | "indeterminate") => void)
onBlur
FocusEventHandler<HTMLButtonElement>
data
DataAttributeMap
ref
Ref<HTMLButtonElement>
key
Key | null