All components

LAYOUT / COMPONENTS

Stack

Arrange content with a consistent rhythm.

Live component7 documented props

About stack

Use vertical stacks for reading flow and horizontal stacks for related actions. Allow wrapping at narrow widths.

01

Anatomy

Shared parts, named consistently.

  1. 1
    Items

    Content or structure that supports the component’s purpose and reading order.

  2. 2
    Gap

    Creates structure and rhythm without adding unnecessary focus stops.

  3. 3
    Direction

    Content or structure that supports the component’s purpose and reading order.

  4. 4
    Alignment

    Content or structure that supports the component’s purpose and reading order.

Try the default

A working example with the shared V1 visual language.

When to use

Use vertical stacks for reading flow and horizontal stacks for related actions. Allow wrapping at narrow widths.

DOM order remains reading and keyboard order; layout never reorders content.

Related components

Source & adaptation

V1 semantic colors, DM Sans typography, compact controls, and responsive layouts. The API table describes this implementation; source design notes may use earlier API terminology.

components/library/layout.tsx