Checkbox API
Props, callbacks and methods. Select an underlined type to explore its fields, allowed values and callback arguments.
Checkbox7 props1 callbacks0 methods
Props7
| Name | Type | Description |
|---|---|---|
checkedOptional | boolean | undefined | Checked state displayed by the checkbox or switch. |
indeterminateOptional | boolean | undefined | Displays the mixed/partially selected checkbox state. |
labelOptional | any | Label content or accessible name for the component, as rendered by this control. |
descriptionOptional | any | Supporting text shown with the label or heading. |
ariaLabelOptional | string | undefined | Accessible name announced by assistive technology. |
controlClassNameOptional | string | undefined | Additional CSS classes for the control part of the component. |
inputRefOptional |
| Reference or callback receiving the underlying input element. |
Events and callbacks1
| Name | Type | Description |
|---|---|---|
onChangeOptional |
| Receives the new value when the user changes the control. Update the corresponding value prop for controlled use. |
Methods0
No component-specific imperative methods. Use props and callbacks to control this component.