Components · Layout primitives
Stack, Inline, Cluster, Split
newSpacing between children is the parent’s gap, on Tailwind’s spacing scale; never margins. Stack: a column. Inline: a row that doesn’t wrap. Cluster: a row that wraps (tags, chips, buttons). Split: two sides pushed apart (a title and its action), wrapping under each other when there is no room. Each takes asChild to render as a list, form or section.
packages/brand-ui/src/components/stack.tsx
First
Second
Third
One
Two
Three
Your discounts
Grid, Switcher, Center
newGrid: one column on a phone, cols from sm or lg up. Switcher: children at equal width that all drop to a column at once when the container is narrower than its threshold (sm 24rem, md 36rem, lg 48rem); it follows the container, not the screen, so it works in a card or a sidebar too. Center: a centred column inside the page, text (720 px) for reading or narrow (440 px) for a form; the page width itself is PageContainer’s.
packages/brand-ui/src/components/stack.tsx
One
Two
Three
Saved this year
€1,240
Discounts claimed
8
Tools in use
5
Saved this year
€1,240
Discounts claimed
8
Tools in use
5
A reading column keeps lines at a comfortable length on wide screens: legal pages, the about page, the redemption API documentation.
Section
newA titled block: the heading (panel by default; section or title), an optional description, an optional action on the title’s line, then the content, 16 px apart. Whenever a title is followed by content, use Section instead of a heading in a Stack.
packages/brand-ui/src/components/section.tsx
Your discounts
Codes and links you have claimed.
Claim
Claim
Recent activity
Claimed Gatekeep
Rated Vaultmail