Back to components

Checkbox

Checkboxes allow the selection of multiple options from a set

A paved road or a path?

Table of Contents

Edit this section, Opens in new window

Overview

Checkboxes are used when there are lists of options and the user may select any number of choices, including zero, one, or several. In other words, each checkbox is independent of all other checkboxes in the list, so checking one box doesn’t uncheck the others. A stand-alone checkbox, or a toggle can be used for a single option that the user can turn on or off.

Edit this section, Opens in new window

Usage

To find out more about when to use selection controls, read this section in the style guide about selection control patterns.
Labels

Always use clear and concise labels for checkboxes. Be explicit about the action that will follow if the Checkbox is selected. Labels appear to the right of checkboxes.

Click target

Users should be able to select the checkbox by clicking on the box directly or by clicking on its label.

Default selection

The default view of a set of checkboxes is having no option selected.

Checkboxes are preferred when an explicit action is required to apply settings.

Sizing

With given attributes (data-size), you can vary the size of the checkbox.

Largest
Larger
Large
Medium
Small
Smallest
Edit this section, Opens in new window

Behaviours

States

Static
A helpful text
Static with help text
Checked
Disabled
Focused
Invalid
A validation error
Invalid with error message
Invalid + Focus
Checked + Focus
Checked + Invalid
Checked + Disabled
Edit this section, Opens in new window

Anatomy

A paved road or a path?
  1. Legend (optional)
  2. Vertical checkboxes
  3. Clear and short label
A paved road or a path?
  1. Legend (optional)
  2. Horizontal checkboxes
  3. Clear and short label
Edit this section, Opens in new window
Contact us, Opens in new window