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
Takes effect now, no need to save
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.
Anatomy
| Mark | Size | Corner | Made of |
|---|---|---|---|
| Checkbox | 16, check 14 | rounded-sm, 4 | mark-edge edge at 3.94:1 Day, 3.56:1 Night; on is a primary fill with a primary-foreground CheckIcon or MinusIcon |
| Radio | 16, dot 8 | rounded-full | The same edge; on is a primary fill with an 8 primary-foreground dot |
| Switch | 32 by 18, thumb 16 | rounded-md, thumb rounded-sm | Off 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 sm | 24 by 14, thumb 12 | size="sm" | Dense rows and table cells only. No uses yet |
Switch or Checkbox
Students book without asking first
A setting that applies the moment it flips, like a light switch. No Save button anywhere near it.
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
Rules
- 1A Switch acts at once. If there is a Save button, use a Checkbox.
- 2A parent Checkbox shows indeterminate when some, not all, children are on. Clicking it turns them all on.
- 3Radios for two to five choices you can see at once. More than that is a Select.
- 4Marks keep their 16 size and their hit area. Put the label on the right and make it clickable too.