Examples
Props
Stack
| Name | Type | Default | Description |
|---|---|---|---|
| children | React.ReactNode | null | content rendered inside the Stack layout |
| className | string | '' | additional classes added to the Stack layout |
| component | React.ReactNode | 'div' | Sets the base component to render. defaults to div |
| hasGutter | boolean | false | Adds space between children. |
StackItem
| Name | Type | Default | Description |
|---|---|---|---|
| children | React.ReactNode | null | additional classes added to the Stack Layout Item |
| className | string | '' | content rendered inside the Stack Layout Item |
| isFilled | boolean | false | Flag indicating if this Stack Layout item should fill the available vertical space. |
CSS variables
| Expand or collapse column | Selector | Variable | Value | |
|---|---|---|---|---|
| .pf-v5-l-stack | --pf-v5-l-stack--m-gutter--Gap | 1rem | ||
--pf-v5-l-stack--m-gutter--Gap --pf-v5-global--gutter $pf-v5-global--gutter $pf-v5-global--spacer--md pf-size-prem(16px) 1rem | ||||
View source on GitHub
