Stack and Clusterjsp
Columns and wrapping rows with token gaps.
Layout and type- Install
- npx shadcn add @jsp/stack
- Import from
- @/components/stack
- Guidance
- draft · v0.1.0
Examples
Written in jsp-ds token utilities.
Stack
gap="component-sm" between every child.
ResearchService designUIDesign systemsAccessibility
Guidance
When to use
Stackfor a column with a gap between children;Clusterfor a row that wraps – buttons, badges, tags.
Rules
- The gap is a token:
component-*inside a component,layout-*between blocks. - Children never add their own margins – the gap does the spacing.
- Use
asfor meaning:ulfor a list of tags,navfor a group of links.
Install
Terminal
npx shadcn add @jsp/stackImport
import { Stack, Cluster } from "@/components/stack"