Stack

Stack is a layout component that creates responsive horizontal and vertical flows.

React examples

Default

Horizontal flow

Custom gap between items

This example uses the 'condensed' gap variant.

Custom alignment

This example uses the 'center' alignment variant.

Custom justification

This example uses the 'space-between' justification variant.

Custom padding

This example uses the 'spacious' padding variant.

Shrink and grow items

Wrapping items

More examples

See the Stack component's "Playground" stories to demo the responsive behavior of the Stack component.

Props

Loading data for stack...