05
Content
- Name the thing it turns on: "Bold", "Favourite".
- Keep the label the same whether it's on or off.
- An icon alone: its aria-label names it and shows as its tooltip.
A tool that's pressed or not. With only an icon, its name shows as its tooltip.
<button aria-pressed>Server-rendered01
02
toggle<button>The root: aria-pressed says whether it's on.toggle-icon-filled<svg>Leads the label. Filled while pressed, with filledWhenPressed.03
04
Each height follows the region's density.
| Size | Height: compact / default / comfortable | Icon |
|---|---|---|
sm | 24 / 28 / 32 | 16px |
md | 28 / 32 / 36 | 16px |
lg | 32 / 40 / 44 | 20px |
05