ButtonGroup
moleculesChild Buttons joined into one control: one outer radius, one divider between segments, a tab stop per segment.
Draft row actions
Launch (primary), Edit (default) and Discard (danger) as one joined group at the end of each row; size="sm", label names the group.
- Rotate the staging TLS certificates edited 2 min ago
- Backfill invoices for the October billing run edited 1 h ago
- Bump the worker image and redeploy edited yesterday
Variants, tones and sizes
each segment keeps its own variant and tone; size sm/md/lg on the group sizes every segment, and a segment's own size still wins.
States, collapse and overflow
disabled and loading stay per segment; collapseLabels="container" drops [data-label] text inside a narrow query container; long labels wrap inside their segment instead of overflowing.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
label required | string | — | Accessible name of the group ("Draft actions"). |
size | ControlSize | — | Default `size` of every segment; a segment's own `size` wins. |
control | boolean | false | Uniform toolbar control height for every segment; follows a sized `Cluster`. |
collapseLabels | 'never' | 'mobile' | 'container' | 'never' | Hide `[data-label]` children of every segment below 40rem viewport (`mobile`) or a 30rem query container (`container`), leaving icons. |
class | string | '' | |
style | string | '' | |
children required | Snippet | — | The segments: `Button`s as direct children. |