Checkbox
Checkbox
Checkbox
and CheckboxGroup
allow users to select or deselect a specific option. A checkbox can stand alone to control a single option, or form part of a checkbox group to control multiple options.
Examples
How to use
Accessibility
- To present an independent choice that the user can select or deselect.
- To present a list of independent options where the user can select any number of choices.
- When the checkbox displays a mutually exclusive choice between two or more options. Instead, use
RadioButton
. - To display a single option but trigger a state change directly and immediately. Instead, use
Switch
.
To import Checkbox
and CheckboxGroup
from the core Salt package, use:
Name | Type | Description | Default |
---|
Name | Type | Description | Default |
---|
- Checkbox vs. Radio Buttons (https://www.nngroup.com/articles/checkboxes-vs-radio-buttons) NN group, September 26, 2004.
- Checkbox pattern (https://www.w3.org/WAI/ARIA/apg/patterns/checkbox/) W3C