Vesture
Get started

Layout

Stack

A flexbox layout primitive for spacing children consistently — the workhorse for arranging every other component.

Stack

Preview

One
Two
Three

Usage

tsx
import { Stack, Button } from "@vesture/react";

<Stack direction="row" gap="sm" align="center" wrap>
  <Button>One</Button>
  <Button variant="secondary">Two</Button>
</Stack>

Props

PropTypeDefaultDescription
direction"row" | "column""column"Flex direction.
alignStackAlign"stretch"align-items.
justifyStackJustify"start"justify-content.
gapStackGap"md"Token-based gap size (xs–2xl).
wrapbooleanfalseEnables flex-wrap.
...restHTMLAttributes<HTMLDivElement>Spread onto the root <div>.