Skip to components
DEVELOPER REFERENCE · v4.0.0

Checkbox API

Props, callbacks and methods. Select an underlined type to explore its fields, allowed values and callback arguments.

Checkbox7 props1 callbacks0 methods

Props7

Checkbox props
NameTypeDescription
checkedOptionalboolean | undefinedChecked state displayed by the checkbox or switch.
indeterminateOptionalboolean | undefinedDisplays the mixed/partially selected checkbox state.
labelOptionalanyLabel content or accessible name for the component, as rendered by this control.
descriptionOptionalanySupporting text shown with the label or heading.
ariaLabelOptionalstring | undefinedAccessible name announced by assistive technology.
controlClassNameOptionalstring | undefinedAdditional CSS classes for the control part of the component.
inputRefOptional
((input: HTMLInputElement | null) => void) | undefinedInspect type
Reference or callback receiving the underlying input element.

Events and callbacks1

Checkbox events and callbacks
NameTypeDescription
onChangeOptional
((checked: boolean, event: Event & { currentTarget: HTMLInputElement; }) => void) | undefinedInspect type
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.