Skip to content

Checkbox

Props

API reference for Checkbox. For usage examples, see the React tab.

NameTypeDefault
childrenReactElement<unknown, string | JSXElementConstructor<any>> | ReactNode

The label of the checkbox.

defaultSelectedboolean

Whether the element should be selected (uncontrolled).

descriptionstring

Additional helper text for the checkbox.

inputRefRef<HTMLInputElement | null>

A ref for the HTML input element.

isDisabledboolean

Whether the input is disabled.

isIndeterminateboolean

Indeterminism is presentational only. The indeterminate visual representation remains regardless of user interaction.

isInvalidboolean

Whether the input value is invalid.

isReadOnlyboolean

Whether the input can be selected but not changed by the user.

isRequiredboolean

Whether user input is required on the input before form submission.

isSelectedboolean

Whether the element should be selected (controlled).