All components

LAYOUT / COMPONENTS

Box

Create a predictable content surface.

Live component24 documented props

About box

Use token spacing to group related content. Choose meaningful HTML around the box when the content needs landmarks.

01

Anatomy

Shared parts, named consistently.

  1. 1
    Container

    Defines the component boundary, grouping, and visual hierarchy.

  2. 2
    Padding

    Creates structure and rhythm without adding unnecessary focus stops.

  3. 3
    Content

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

Try the default

A working example with the shared V1 visual language.

Surface

Space creates a clear boundary around related ideas.

When to use

Use token spacing to group related content. Choose meaningful HTML around the box when the content needs landmarks.

The container is not a keyboard stop; its children preserve their own semantics.

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