Skip to content
nexubDesign System
v12.7.0

Components · Layout

Stack

StableAdded v0.0.1

Vertical stack layout with configurable gap.

import { Stack } from '@nexub/react';
View as Markdown

Playground

Props

direction
TSX
<Stack gap="md">…</Stack>

Examples

Default

With dividers

First item

Second item

Third item

Props

Props
PropTypeDefaultDescription
gapstring | number—Spacing between child elements.
alignstring—Cross-axis alignment of children.
dividerReact.ReactNode—Element rendered between each pair of children, e.g. <Separator />.
asChildbooleanfalse
direction'row' | 'column''column'
justifystring—
wrapbooleanfalse

On iOS & Android