Checkbox
Checkbox is an input field representing a binary choice. Checkbox Group is a group of related binary choices.
Use Checkbox Group to group related items. Individual checkboxes should be used for options that are not related to each other in any way.
States
Disabled
Disable a field to mark it as currently unavailable. Disabled state is used for fields that are not editable and do not need to be readable. Disabled elements cannot be focused and may be inaccessible to assistive technologies like screen readers.
Disabling can be preferable to hiding an element to prevent changes in layout when the element’s visibility changes, and to make users aware of its existence even when currently unavailable.
Note
|
Read-only state
Checkbox does not support read-only state.
|
Orientation
The component’s default orientation is horizontal but vertical orientation is recommended whenever possible as it’s easier for the user to scan a vertical list of options:
In cases where vertical space needs to be conserved, horizontal orientation can be used, but no more than 3 options are recommended:
Best Practices
Labeling
Aim for short and descriptive labels using positive wording. Avoid negations.
new tab
Source code
checkbox-labeling.ts
checkbox-labeling.ts
It is important to provide labels for Checkbox Groups to clearly distinguish adjacent groups.
Related Components
Component | Usage recommendations |
---|---|
A field for selecting an item from a list of options which are presented in an overlay. Recommended when there is insufficient space for a Radio Button Group. | |
A filterable, lazy loading alternative to Select, recommended for ten or more items. | |
Scrollable list of options. Supports single and multi-select. | |
Corresponding component for mutually exclusive options, or “single-select”. |
8B864673-06F1-45B7-A039-5087706B427B