CheckboxInput

Beta notice: This page is being built.Edit on GitHub(opens in new tab)

Edits a boolean or indeterminate field.

longlink docs component "CheckboxInput"

Example

Properties

CheckboxInput - Properties
labelstring
Label text for the checkbox (always rendered for accessibility).
descriptionstring
Description text displayed below the label.
namestring
Includes the themed control's value under this form submission name.
requiredboolean
Requires a value before native form submission.
disabledboolean
Prevents interaction and excludes the field from submission.
valueboolean | "indeterminate"
Whether the checkbox is checked, unchecked, or indeterminate.
defaultCheckedboolean
Initial checked state.
onChange(value: boolean) => void
Callback fired when the checkbox state changes.