Job board

Checkbox

A checkbox turns a single option on or off. Selected carries the value; the component is the control alone, with no label of its own.

Design
Finished
Level
Ready
Audit
1 open findingat the audit of
Last changed

Preview

Checkbox, default variant as designedCheckbox, default variant as designed
Default variant as designed, light modedark modeOpen in Figma

Usage

Do

  • Pair it with a label owned by the surrounding row, as Select list - item and Dropdown menu - item both do
  • Use for independent options, where any combination is valid

Don't

  • Use for a single on/off setting that applies immediately: use Switch
  • Use where exactly one option must be chosen: this library has no radio, so add one
  • Place it without a label or an accessible name

Behaviour

  • Selected switches between the empty box and the checked box
  • State (Focus, Hover, Press) and Disabled are managed by code and not applied in static designs

Composition

  • The tick is a check icon, present only on Selected=True

Accessibility

Follows the WAI-ARIA checkbox pattern: roles, keyboard and focus behaviour.

Dependencies in Figma

Used byCheckboxCheckboxDropdown menu - itemDropdown menu - itemOption select - Selection pillOption select -Selection pillSelect list - itemSelect list - item

Places 1 component from another library: Icon/check / Size=16. This snapshot does not hold them, so this page cannot link to them or describe them.

Level checks

Ready · next level blocked by Warnings open

The ladder's checks for Checkbox
CheckLevelResult
AuditedReadyPasses
No errors openReadyPasses
Has a descriptionReadyPasses
Usage and Don't writtenReadyChecked at the next audit
Every layer namedReadyPasses
In codeReadyPasses
No warnings openStableNot yet
Code gen notes writtenStableChecked at the next audit
Auto layout throughoutStableChecked at the next audit
Matches the designStablePasses

Properties

Checkbox: each property, its type, values and default
PropertyTypeValuesDefault
SelectedVariant
FalseTrue
False
DisabledVariant
FalseTrue
False
StateVariant
RestFocusHoverPress
Rest

States

StateSet by
FocusInteraction
HoverInteraction
PressInteraction
SelectedThe Selected property
DisabledThe Disabled property

Implementation

What code builds differently from the drawing, and why
FigmaCodeWhy
Content, inside strokeborder with box-sizing: border-box and padding less the stroke, or box-shadow: inset 0 0 0 <width>Figma's inside stroke takes no space; a border does.
Selectedaria-selected, aria-pressed or checkedThe element's own selection state, by what the element is, so assistive technology announces it.
Disableddisabled, or aria-disabled where it must stay focusableThe element's own state: the browser keeps it out of the tab order and out of form submission.
State: Focus, Hover, Press:focus-visible, :hover, :activePseudo-classes the browser sets, so a template cannot claim a state the control is not in.

Changes on 19 Sept
ChangeTypeFigma filesCodeDetails
DescriptionDocsPatchPatch

Changes on 6 Sept
ChangeTypeFigma filesCodeDetails
Content: strokeRestyledMinorMinor

Changes on 1 Sept
ChangeTypeFigma filesCodeDetails
Content: strokeRestyledMinorMinor

Changes on 21 Aug
ChangeTypeFigma filesCodeDetails
Nested component renamed (5 layers)Not gradedNot gradedNot graded
Its values movedRestyledMinorMinor
Its values movedRestyledMinorMinor
Layer IconAddedMinorPatch
ComponentAddedMinorMinor