05
Content
- Short labels, one or two words: "7 days", "Grid".
- Name the group: aria-label says what's being chosen, "Members view".
- Icon-only toggles: each needs its own aria-label.
A row of toggles: one view among a few, or a set of tools that are each on or off.
<div role="group">Server-rendered01
02
toggle-group<div role="group">The root: one Tab stop; arrow keys move inside.toggle<button>Each choice, with aria-pressed.03
04
Each height follows the region's density.
| Size | Height: compact / default / comfortable |
|---|---|
sm | 24 / 28 / 32 |
md | 28 / 32 / 36 |
lg | 32 / 40 / 44 |
05