Examples
With fill
Apply <code class="ws-code">pf-m-fill</code> to the body item — it expands to consume remaining height. Requires the parent to have a fixed height.
Documentation
Stack props
Parameters accepted by {#include layouts/primitives/stack ... /}.
| Name | Type | Description |
|---|---|---|
* id | String | DOM id on the container. |
gutter | boolean | Adds pf-m-gutter — 1rem row-gap. |
slot items | Qute block | Stack children — wrap each in pf-v6-l-stack__item; add pf-m-fill to the one that should grow. |
Usage
Fill needs a height ceiling. pf-m-fill only does something useful if the Stack container has a defined height (explicit, percentage of a sized ancestor, or stretched by another flex/grid). Without one the fill item just collapses to natural height.
Common pairing. Stack-with-fill is the standard "fixed header / fluid body / fixed footer" page layout. Pair with a 100vh root container.