Package org.patternfly.layout.stack
package org.patternfly.layout.stack
Provides the PatternFly stack layout for positioning items vertically, with one or more items filling the available vertical
space.
A stack layout with gutters:
The stack layout arranges items in a vertical column. One or more items can use fill() to expand and fill the
remaining vertical space. The layout also supports gutters for spacing between items.
Usage
A basic stack layout with a fill item:import static org.patternfly.layout.stack.Stack.stack;
import static org.patternfly.layout.stack.StackItem.stackItem;
stack()
.addItem(stackItem().text("Header"))
.addItem(stackItem().fill().text("Main content"))
.addItem(stackItem().text("Footer"));
import static org.patternfly.layout.stack.Stack.stack;
import static org.patternfly.layout.stack.StackItem.stackItem;
stack().gutter()
.addItem(stackItem().text("Header"))
.addItem(stackItem().fill().text("Main content"))
.addItem(stackItem().text("Footer"));
- See Also: