Input
Checkbox
A small box the user checks or unchecks; any number of options in a group can be checked.
Demo
How to recognize it
A small square next to a label. A checked box shows a check mark; a partly checked parent shows a dash.
Behavior
- Clicking the box or its label toggles the check.
- A parent checkbox can show a mixed state when only some of its children are checked; checking it checks them all.
- Related checkboxes are grouped with a fieldset and legend so the group has a name.
Keyboard
| Key | Action |
|---|---|
| Tab | Moves between checkboxes. |
| Space | Checks or unchecks the focused box. |
Usage notes
- Use it for choosing several options, or for a single on/off choice.
- Put the box to the left of its label.
Similar components
Sources
- WAI-ARIA APG: Checkbox Pattern (Last checked: )
- デジタル庁デザインシステムウェブサイト「チェックボックス」をもとに作成 (Last checked: )