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 |
|---|
label Label text for the checkbox (always rendered for accessibility).string |
description Description text displayed below the label.string |
name Includes the themed control's value under this form submission name.string |
required Requires a value before native form submission.boolean |
disabled Prevents interaction and excludes the field from submission.boolean |
value Whether the checkbox is checked, unchecked, or indeterminate.boolean | "indeterminate" |
defaultChecked Initial checked state.boolean |
onChange Callback fired when the checkbox state changes.(value: boolean) => void |