Examples
With fill
Add <code class="ws-code">pf-m-fill</code> to one item — it grows to consume all remaining horizontal space.
With gutter
<code class="ws-code">gutter=true</code> adds 1rem column-gap between items.
Wrappable
pf-m-wrap lets split items wrap instead of overflowing.
Documentation
Split props
Parameters accepted by {#include layouts/primitives/split ... /}.
| Name | Type | Description |
|---|---|---|
* id | String | DOM id on the container. |
gutter | boolean | Adds pf-m-gutter — 1rem gap. |
wrap | boolean | Adds pf-m-wrap — items break to a new line when they overflow. |
slot items | Qute block | Split children — wrap each in pf-v6-l-split__item; add pf-m-fill to the one that should grow. |
Usage
One fill, many items. Set pf-m-fill on exactly one item. If you set it on more than one, each consumes some of the space — usually not what you want.
Stack vs. Split. Split is the horizontal twin of Stack — same semantics (fill, gutter) but laid out left-to-right instead of top-to-bottom.