Menu
Esc
DocsGitHub TR

Components

Checkbox

Turns an option on or off, alone or in a list where several can be chosen. Supports an indeterminate state for “some selected”.

Open in Figma

Playground

Figma variant

🕹 State=Default
Size=Medium
Checked=False
with Label=True
Error=False
Disabled=False
Indeterminate=False

Variants

Sizes

States

Hover darkens the border to primary, keyboard focus adds the focus ring, error turns the border red, disabled flattens the control.

In a form

ChoiceGroup is the Form Checkbox / Radio / Switch pattern: a label, the options 16px apart, and a hint or error.

Notifications
Remember me
Notifications

Tokens

StateFillBorderMark
Off--color-surface-level-1--color-surface-level-4
Hover / Focus--color-surface-level-1--color-primary (+ --shadow-focus-primary)
On / Indeterminate--color-primary—--color-on-primary
Error--color-surface-level-1--color-error (+ --shadow-focus-error)
Disabled off / on--color-surface-level-2 / --color-primary-tint--color-surface-level-4

Notes from Figma

  • The 6px corner is a raw value in Figma; code adds it as --radius-checkbox.

Figma to code

FigmaReact
Size = Medium / Smallsize='medium' / 'small'
Checked / Indeterminatechecked / indeterminate
with Label = Truelabel="…"
Error / Disablederror / disabled
🕹 State = Hover / Focus:hover / :focus-visible
Form Spacing = Truespacing
Form Checkbox<ChoiceGroup label hint>