Stack

layout

Consistent spacing between elements with flexbox

Replace raw flexbox divs with semantic spacing control

import { Stack } from "@everydayos/ui";

Usage

Vertical stacking of content with consistent spacing

Stack spacing

Use nested stacks to control hierarchy without wrapper components.

This group uses spacing="md".

Consistent gaps make layouts feel designed, not incidental.

API

direction
Default: vertical
verticalhorizontal
spacing
Default: md
nonexssmmdlgxl
defaultpreferredrare
align
Default: stretch
startcenterendstretchbaseline
justify
Default: start
startcenterendbetweenaroundevenly
PropTypeDefault
classNamestring
children*React.ReactNode

Composition

Pairs well with

Heading
Text
Button
Surface

When to avoid

  • Need wrapping behavior — use Inline instead
  • Need grid layout — use Grid instead