Checkbox
A box for picking several of a few options, or one yes/no that takes effect on submit, with the caret as its check mark.
When to use
Section titled “When to use”- Use it to pick tools, folders or days of the week. Use it for consent lines before a destructive action.
- Something that takes effect at once is a
Switch.
What the consumer provides
Section titled “What the consumer provides”label(required) and an optionaldescriptionunder it.checked, andindeterminatefor a parent whose children are mixed.errorfor a required consent box. It shows under the group.
Behaviour
Section titled “Behaviour”- A 20px box with
border-strongandradius-xs. When checked, it fillsemerald-deepand the caret scales in over 160ms. - The box scales to 0.92 while pressed. This is the small-control exception to
press-scale(see Motion). - The focus ring goes on the box, not the label. The whole label row is the click target, at least 40px tall.
- Disabled: a
surface-200box andink-disabledtext. The description says why.
Tokens
Section titled “Tokens”surface-100, border-strong, emerald-deep, ink-on-brand, focus, danger, surface-200, ink-disabled, radius-xs.
Mantine
Section titled “Mantine”<Checkbox label description icon={CaretCheckIcon} indeterminate error />. For groups, use Checkbox.Group.