Draft. Proposed from the survey of 18 design systems and not yet approved. It is in the registry so teams can try it; the API may still change before approval.
When to use
- Spaced: the actions at the end of a form, a dialog or a card. At most three buttons.
- Joined: actions on the same thing that read as one control, such as previous, today and next in a date range.
When not to use
- To choose one option out of several. Use a segmented control.
- For more than three actions. Keep the main one and put the rest in a menu button.
- For a row of tools that needs arrow-key navigation. Use a toolbar.
Layout
| Kind | Gap | Corners | Order |
|---|---|---|---|
| Spaced | space.100 (8 px); space.150 (12 px) for icon-only buttons |
Each button keeps its own | Dialogs: end-aligned, primary last. Page forms: start-aligned, primary first (D10). |
| Joined | 0; the touching edges overlap into one line | Only the outer corners keep radius.control; inner corners are 0 (D2) |
Left to right in reading order |
All buttons in a group have the same size. A joined group uses one variant for every button, Default or Subtle.
Accessibility
- A joined group has
role="group"and anaria-labelthat names the whole set. - Each button keeps its own accessible name and focus ring. The focused button sits above its neighbours so the whole ring shows.
- Tab moves through the buttons one by one. Arrow keys are for a toolbar, not a group.