sigilUI

Stack

Arrange children vertically or horizontally with consistent gaps.

@sigil-ui/componentsReact

Preview

Live preview Interactive

Import

import { Stack, Card, CardContent } from "@sigil-ui/components";

Usage

<Stack gap="var(--s-space-12)" className="w-full"><Card><CardContent>Design tokens</CardContent></Card><Card><CardContent>Shared components</CardContent></Card><Card><CardContent>Product pages</CardContent></Card></Stack>

Props

PropTypeDefaultDescription
gapstring | number—Spacing between children — maps to a CSS gap value.
flushboolean—Remove all gaps for flush stacking.
direction"row" | "column"columnStack direction.
align"start" | "center" | "end" | "stretch" | "baseline"—Cross-axis alignment.
justify"start" | "center" | "end" | "between" | "around" | "evenly"—Main-axis justification.
asElementTypedivRender as a different HTML element.