Components
CheckboxField
Checkbox paired with a label and optional description in a Base UI
Field, which associates the label with the checkbox and links the
description through aria-describedby; forwards checkbox state props to
the underlying Checkbox.
Usage
Best practices
Use
CheckboxFieldfor a single labelled checkbox - itsFieldwires the label andaria-describedbyyou'd otherwise hand-roll around a bareCheckbox.Put helper text in
description(linked viaaria-describedby), not a separate sibling element the screen reader won't announce with the control.sizeaccepts only"xs"/"sm"; for a full selectable card useCheckboxCardGroup, and render oneCheckboxFieldper option for a set.
Props
Also exports
- type
CheckboxFieldProps