Balance Logo
Balance
Reckon Design System
Open playroom

Stack

Used to distribute children vertically, with even spacing between each child.
Install
pnpm add @balance-web/stack
Import usage
import {
Stack
} from '@balance-web/stack';
  • Code
  • API

Alternatives

  • Inline — For horizontal layouts, with fluid child widths that may wrap
  • Columns — For horizontal layouts, with prescriptive and exact child widths
  • Flex — For custom layouts
  • FieldStack — For applying consistent vertical spacing to form fields

Usage

Gap

The spacing between children can be adjusted using the gap prop.

Edit in Playroom

Horizontal alignment

Items can be aligned horizontally using the align prop.

Dividers

Use the dividers property to render a Divider between each element in the Stack.

Nesting

Nest Stack components to create more complex white space rules.

Copyright © 2024 Reckon. Designed and developed in partnership with Thinkmill.
Bitbucket logoJira software logoConfluence logo