Stack

Usage

This component is used in code only. See the Spacing documentation for more information.

Stack is a 1-dimensional layout system with options to control the direction, spacing, distribution, and relative sizing of its children elements. StackItem is the child element of the component.

Use Stack to layout inline components. If the component you are viewing has all of its child items displayed inline, then most probably Stack is the best solution here.

Examples

Live Preview

Props

Stack

Fetching props...

StackItem

Fetching props...

Slots

Stack

Fetching slots...

StackItem

Fetching slots...