Skip to main content
⌘K

Search

Search pages, pieces and blocks.

Marks

One solid square mark, one ring, one Switch. Off is an edge, on is a Primary fill, and the Switch is the only mark that acts by itself.

Checkbox
16, r 4
Radio
16, round
Switch
32 by 18

In a real piece

A notifications card. Hover a mark.

A Switch that acts now, a parent Checkbox showing some, and a Radio pair, saved together.

  • Switch, offApplies at once
  • Checkbox, indeterminateSome children chosen
  • Checkbox, checkedSaved with the form
  • Checkbox, uncheckedEdge only, mark-edge
  • RadioOne of a few, saved with the form
Notifications
Choose what reaches you, and when.

Takes effect now, no need to save

2 of 3
Send them

Every state

Disabled is 50%. Invalid adds a red edge and a 3px red ring; once a Checkbox or Radio is checked, the edge stays Primary in Day and only the ring says it. In Night and on the Switch, the red edge stays.

Off
On
Indeterminate
Focus
Disabled
Invalid
Invalid, on
Checkbox
Radio
None
Switch
None
Switch sm
None

Anatomy

MarkSizeCornerMade of
Checkbox16, check 14rounded-sm, 4mark-edge edge at 3.94:1 Day, 3.56:1 Night; on is a primary fill with a primary-foreground CheckIcon or MinusIcon
Radio16, dot 8rounded-fullThe same edge; on is a primary fill with an 8 primary-foreground dot
Switch32 by 18, thumb 16rounded-md, thumb rounded-smOff is a mark-edge track with a background thumb, muted-foreground in Night. On is primary. Grows to 1.035 on hover in 150ms; the fill fades in 320ms
Switch sm24 by 14, thumb 12size="sm"Dense rows and table cells only. No uses yet

Switch or Checkbox

Switch: it happens now

Students book without asking first

A setting that applies the moment it flips, like a light switch. No Save button anywhere near it.

Checkbox: it happens on Save

A choice that is part of a form, a consent, or picking items from a list. It does nothing until the form is sent.

Do and don't

Cancel booking
DoCheckboxes in a form that only acts on the button.
Cancel booking
Don'tSwitches in a form. They look like they acted already, then the user wonders if Back undoes them.

Rules

  1. 1A Switch acts at once. If there is a Save button, use a Checkbox.
  2. 2A parent Checkbox shows indeterminate when some, not all, children are on. Clicking it turns them all on.
  3. 3Radios for two to five choices you can see at once. More than that is a Select.
  4. 4Marks keep their 16 size and their hit area. Put the label on the right and make it clickable too.