Checkbox
Binary input. Supports checked, unchecked, and indeterminate states via modelValue.
Basic
A checkbox paired with a Label so the text is a click target too.
With description
Wrap the label and a FieldDescription in FieldContent for a helper line.
Your Desktop and Documents folders are kept in sync across every device you sign in on.
Disabled
Use the disabled prop to disable the checkbox.
Invalid
Set aria-invalid on the Checkbox and pair it with a FieldError for validation.
- You must accept the terms before continuing.
Group
Stack several checkboxes in a FieldSet, each bound to its own ref.
Select all
A header checkbox goes indeterminate when only some rows are selected.
| Name | Role | |
|---|---|---|
| Olivia Martin | Owner | |
| Jackson Lee | Member | |
| Isabella Nguyen | Member | |
| William Kim | Viewer |
API Reference
Checkbox
Accessibility
Keyboard shortcuts and ARIA behavior.
- Uses role=checkbox with aria-checked reflecting the state.
- Supports an indeterminate (mixed) state via aria-checked="mixed".
- Pair with a label so the control's purpose is announced.