Checkbox
The Checkbox is a widely used input component for toggling between checked and unchecked states. It supports basic, controlled, and indeterminate states.
The Checkbox is a widely used input component for toggling between checked and unchecked states. It supports basic, controlled, and indeterminate states.
API reference docs for the component. Learn about the props, CSS, and other APIs of this exported module.
CheckedState
If `true`, the checkbox will be checked.
CheckedState
'ltr' | 'rtl'
The document's text/writing direction.
boolean
If `true`, the checkbox will be disabled
string
The id of the form that the checkbox belongs to.
() => ShadowRoot | Node | Document
A root node to correctly resolve document in custom environments. E.x.: Iframes, Electron.
string
The unique identifier of the machine.
Partial<{ root: string hiddenInput: string control: string label: string }>
The ids of the elements in the checkbox. Useful for composition.
boolean
If `true`, the checkbox is marked as invalid.
string
The name of the input field in a checkbox. Useful for form submission.
(details: CheckedChangeDetails) => void
The callback invoked when the checked state of the `Checkbox` changes.
boolean
If `true`, the checkbox input is marked as required,
string
The value of checkbox input. Useful for form submission.
CheckedState
The checked state of the checkbox
Dict<any>
Dict<any>
boolean
Whether the checkbox is checked
boolean
Whether the checkbox is indeterminate
Dict<any>
Dict<any>
(checked: CheckedState) => void
Function to set the checked state of the checkbox
() => void
Function to toggle the checked state of the checkbox
boolean
Whether the checkbox is disabled
boolean
Whether the checkbox is focused