Stack
layoutsA vertical column with one consistent gap, alignment and an auto-margin push, polymorphic over div, section, form, list or nav.
Incident summary card
Nested Stacks: a tight gap="var(--sp-1)" for the title block, the default --sp-3 between blocks.
SEV-2 Opened 09:42 UTC · 18 min ago
cache-01 evicting keys under memory pressure
Gap scale
gap takes any CSS length; the striped background is the gap itself.
0
var(--sp-1)
var(--sp-2)
var(--sp-3)
var(--sp-4)
var(--sp-6)
Alignment and push
align sets the cross axis; fill with justify="space-between" spreads a fixed-height column; push="end" pins the last block to the bottom.
align="stretch" eu-west-1
align="flex-start" eu-west-1
align="center" eu-west-1
align="flex-end" eu-west-1
justify="space-between" Plan: Team 12 / 15 seats
push="end" Storage is 92% full
Semantic elements
as="ol" keeps list semantics for an ordered checklist; as="form" spaces fields and submits natively.
- Rotate the API key
- Update the CI secret
- Revoke the old key
Props
| Prop | Type | Default | Description |
|---|---|---|---|
as | 'div' | 'section' | 'ul' | 'ol' | 'li' | 'form' | 'nav' | 'div' | |
gap | string | 'var(--sp-3)' | |
align | string | — | |
justify | string | — | |
grow | boolean | false | `flex: 1 1 0` inside a parent row/column. |
shrink | boolean | true | `false` pins the stack (`flex: none`). |
fill | boolean | false | `height: 100%` to fill a flex parent. |
push | 'start' | 'end' | — | Auto margin pushing the stack to the start/end of its parent. |
class | string | '' | |
children | Snippet | — | |
style | string | — |