structyl

Stack

stable

Arranges children in a row or column with consistent spacing.

Basic usage

OneTwo

Examples

Direction and spacing

Use column stacks for form groups and row stacks for action clusters.

DraftReviewReady

Owner

Design systems team

Action rows

Stack keeps repeated action rows predictable without introducing another layout component.

Alignment and dividers

Stack supports row/column directions, numeric spacing, wrapping and inserted dividers.

One
Two

Features

  • Row or column direction.
  • Tokenized spacing.

Installation

bash
pnpm dlx structyl add stack

API Reference

Stack API reference

Full props, types, defaults.

View API
Stack | structyl