Stack

Examples

Basic

content
pf-m-fill
content

With gutter

content
pf-m-fill
content

Props

Stack

*required
NameTypeDefaultDescription
childrenReact.ReactNodenullContent rendered inside the stack layout.
classNamestring''Additional classes added to the stack layout.
componentReact.ReactNode'div'Sets the base component to render. Defaults to div.
hasGutterbooleanfalseAdds space between children.

StackItem

*required
NameTypeDefaultDescription
childrenReact.ReactNodenullAdditional classes added to the stack layout item.
classNamestring''Content rendered inside the stack layout item.
componentReact.ReactNode'div'Sets the base component to render. Defaults to div.
isFilledbooleanfalseFlag indicating if this stack layout item should fill the available vertical space.

CSS variables

Expand or collapse columnSelectorVariableValue
.pf-v6-l-stack--pf-v6-l-stack--m-gutter--Gap
1rem