Grouped related buttons.
Grouped related buttons. Use ButtonGroup when this pattern fits the screen — variant previews are below.
Do
- Use one clear primary action per view.
- Match
variantto semantic intent (danger for destructive).
Don't
- Stack multiple primary-weight controls side by side.
- Use buttons for plain navigation when Link fits.
<twig:ButtonGroup>…</twig:ButtonGroup>| Prop | Type | Default | Description |
|---|---|---|---|
| — | — | — | See Twig component class and package registry. |
- Icon-only controls need
aria-label. - Do not rely on colour alone for meaning.