Stack
The layout arranger — lanes in one of two grid engines, with direction, reverse, alignment, band padding and a measure cap.
Each example measures itself, so its gutters are to scale rather than to the page's. The arrangements are exact.
| Prop | Description | Default | Control |
|---|---|---|---|
| pattern | ratio (default) lays lanes out by weight; snap places them on a fixed 25-column grid shared by every Sectionratiosnap | ratio | |
| lanes | lane weights, such as 2|1, or a number of equal lanes. Children fill lanes in order; extra children start a new row. In code it can change by breakpoint: { base: 1, md: 1|1 } | 1 | |
| direction | lanes as columns (horizontal) or rows (vertical). Ratio onlyhorizontalvertical | horizontal | |
| reverse | reverse the lane order. In code it can change by breakpoint: { base: true, md: false } | false | |
| align | how lanes line up with each other. Default stretch makes them equal heightstretchstartcenterend | stretch |
|
| max | cap the content width and centre it: prose, panel, content, wide or a CSS length. Blank is full width | ||
| gap | space between lanes, a layout spacing step. Default 200-511-523468 | 2 |
|
| padding | padding at the band's left and right edges. Default 2; none inside another Stack or a nested Section. Ratio onlynone00-511-523468 | 2 |
|
| padding | padding above the band. Default 2; none inside another Stacknone00-511-523468 | 2 |
|
| padding | padding below the band. Default 2; none inside another Stacknone00-511-523468 | 2 |
|