Skip to main content
Coat of arms of Barbados
Official government website

Checkbox

Checkboxes let users select any number of options from a list, including none.

Preview

Checkbox group

The Checkbox component lets users select any number of options from a list, including none, or toggle a single option on or off. Each checkbox operates independently, so selecting one does not affect the others.

When to use this component

Use checkboxes when users can select more than one option from a list, or need to toggle a single option on or off, such as agreeing to terms and conditions.

When not to use this component

Do not use checkboxes when a user must choose exactly one option from a list of mutually exclusive choices. Use radio buttons instead.

Guidance

Group related checkboxes in a <fieldset> with a <legend> that frames the question, for example "How would you like to be contacted?". This associates the options with their question for assistive technology.

Do not pre-select options. Pre-selected checkboxes make it more likely that users will not notice they have skipped a question, or will submit an answer they did not intend. Let users make an active choice.

Order options by relevance, listing the most common or recommended choices first. Fall back to alphabetical order only when no meaningful priority exists.

Make the number of selectable options clear. Do not assume users will infer from the visual difference between checkboxes and radio buttons that they can select more than one. Add a hint such as "Select all that apply" where it helps.

Single checkbox

Use a standalone checkbox, without a fieldset, for a single opt-in, such as accepting terms and conditions.

Single checkbox

Disabled checkboxes

Disable a checkbox only when an option is genuinely unavailable to the user, and say why in the label, for example "(unavailable)". As with buttons, avoid disabling wherever possible: a disabled checkbox gives the user no information about what they need to do to enable it.

Disabled checkbox