Cluster
layoutsA horizontal row with one gap that wraps instead of overflowing, can stack at a container width and cascades one control height to its children.
Pull request header
One Cluster per row: metadata wraps on a phone, actions sit at justify="flex-end".
Stream cache warm-up through the edge workers
Open amara wants to merge 4 commits into main perf needs review
Gap and alignment
gap, align and justify take any CSS value; the striped background is the gap itself.
gap="var(--sp-1)" align="center" justify="flex-start"
billing eu-west-1 canary v2.14.0
gap="var(--sp-3)" align="center" justify="flex-start"
billing eu-west-1 canary v2.14.0
gap="var(--sp-2)" align="flex-end" justify="center"
billing eu-west-1 canary v2.14.0
gap="var(--sp-2)" align="center" justify="space-between"
billing eu-west-1 canary v2.14.0
Wrapping and stacking
Drag the preview edge: the default wraps, wrapAt="28rem" stays on one line until the row is narrower, stackAt="md" turns actions full-width under 40rem.
wrap (default)
frontend design-system accessibility good first issue p2 release-blocker docs
wrap={false}, scrolls instead
frontend design-system accessibility good first issue p2 release-blocker docs
wrapAt="28rem"
stackAt="md"
Control height tier
size="sm" | "md" | "lg" sets the control height of children that opt in with control; grow shares the row equally.
sm
md
lg
Props
| Prop | Type | Default | Description |
|---|---|---|---|
as | 'div' | 'section' | 'ul' | 'ol' | 'nav' | 'header' | 'footer' | 'div' | |
gap | string | 'var(--sp-2)' | |
align | string | 'center' | |
justify | string | — | |
wrap | boolean | true | |
size | 'sm' | 'md' | 'lg' | — | |
grow | boolean | false | |
shrink | boolean | true | `false` pins the cluster (`flex: none`) inside a parent row. |
fill | boolean | false | `height: 100%` to fill a flex parent. |
push | 'start' | 'end' | — | Auto margin that pushes the cluster to the start/end of its parent. |
wrapAt | string | — | Width (px/em/rem) under which the row starts wrapping (wraps always when unset and `wrap`). |
stackAt | 'xs' | 'sm' | 'md' | 'lg' | — | |
class | string | '' | |
children | Snippet | — | |
style | string | — |