Checkboxes

Checkboxes are used to let a user select one or more options of a limited number of choices. Checkboxes can turn an option on or off.

Variations

Primary Checkboxes

copydone
Checkbox can also have helper text
copydone
copydone

Secondary Checkboxes

copydone
Checkbox can also have helper text
copydone
copydone

Usage

Use checkboxes to:

  • Select one or more options from a list
  • Present a list containing sub-selections
  • Turn an item on or off in a desktop environment

Specs

Checkboxes come in two basic styles (primary and secondary). Both have 1rem (16px) height and width and 0.5rem spacing between the button and the label.

Accessibility notes

In case of multiple grouped checkboxes, a <fieldset> should surround the entire group of checkboxes. The <legend>provides a description of the grouping.