Checkbox
UI DesignWhat is a Checkbox
A checkbox is a form control that lets users select any number of options, including none. Each checkbox works on its own, so checking one does not uncheck the others. A single checkbox can also answer a yes or no question.
Checkbox states
- Unchecked: The option is off
- Checked: The option is on
- Indeterminate: A mixed state, such as a select all box when only some items are checked
When to use a Checkbox
Use checkboxes for multiple selections, such as filters or interests, and for single opt-ins, such as accepting terms. Use radio buttons when only one option is allowed, and a toggle switch when the change should apply immediately.
Checkbox best practices
List options vertically and make the label clickable. Write labels in positive, active wording, such as "Send me updates", not "Don't send me emails". Group long lists under subheadings so they are easier to scan.
Frequently asked questions
When should you use a checkbox?
Use checkboxes when users can select any number of options, including none, or for a single yes-or-no choice such as accepting terms. If only one option may be chosen, use radio buttons.
What is an indeterminate checkbox?
It is a third, mixed state, often shown as a dash. A "select all" checkbox uses it when only some of the items below it are checked.
How should checkbox labels be written?
Use positive, active wording that says what happens when the box is checked, such as "Send me product updates". Avoid negatives like "Don't send me emails", which force users to think backwards.
Related terms
View all UI Design terms →Radio Button
A radio button is a form control that lets users select exactly one option from a list. Selecting one option deselects the others in the…
Toggle Switch
A toggle switch is a control that turns a single setting on or off , like a light switch. It always has a value, on or off, and the change…
Input Field
An input field, or text field, is a box where users type information , such as a name, email address or password. It is the most common…
Interactive States
Interactive states are the visual changes that show how a component responds to the user. They tell users whether an element can be used…
Error Prevention
Error prevention is the practice of designing an interface so users are less likely to make errors in the first place. It is the fifth of…
Keyboard Navigation
Keyboard navigation is using a website or app with the keyboard instead of a mouse . Users move between links, buttons and fields with the…
