Checkbox

Also called check box or tick box

A small square you tick to turn an option on or select an item, with a dash in a parent box when only some items are checked.

What is Checkbox?

A checkbox toggles one independent choice: accept the terms, select a file, include weekends. Each box works on its own, so people can check none, one, or all of them. A Select all box above a list shows a third, indeterminate state, drawn as a dash, when only some rows are checked.

Use checkboxes for selecting several items and for options that take effect when someone presses Submit or Save. For a single setting that applies instantly, a toggle switch is clearer, and for picking exactly one option, use radio buttons.

Make the label clickable along with the box, keep the target at least 24px, and show a clear focus ring. The indeterminate state can only be set from JavaScript, through the indeterminate property. A checkmark that draws itself in over about 150 to 200ms, using an SVG stroke animation, makes ticking feel satisfying without slowing anyone down.

Often confused with

Toggle switch
A toggle switch applies one setting the moment you flip it. Checkboxes suit selecting several items or choices that apply when a form is submitted.
Radio button
Radio buttons allow exactly one choice in a group. Checkboxes allow any number, including none.
All terms

Toggle switch

An on/off control shaped like a small track with a sliding knob, used for settings that take effect immediately.

Radio button

A round option in a group where choosing one clears the others, so people pick exactly one answer, like a plan or a shipping speed.

SVG line drawing

An animation that makes an SVG outline look like it is being drawn by hand, by revealing its stroke from start to end.

Data table

A table built for working with records: click a column header to sort, type to filter, and check rows to act on several at once.