Once UI Handbook
Beginner Guides
What is Once UI?
Install & config
Page skeleton
Your first page
Build And Launch
How to launch a portfolio site that actually gets you hired
How to build a documentation site with MDX and Next.js
How to ship a landing page and dashboard with authentication in Next.js
How to launch a social app with Next.js and Supabase
Vibe Coding
Introduction to vibe coding
Set up your local dev environment
Essential tools for vibe coding
Build your first Once UI app
Common Patterns
Hero section
Static panel
Form layout
Highlighted card
Responsive stacking
Decoration layers
Dialog & modal
Toast & feedback
Tables & lists
Loading states
App shell navigation
Dashboard & charts
Chat & messaging
Auth & verification
Settings & split panels
Data filters & toolbar
Command palette
Pricing & plans
Accordion & FAQ
Media & uploads
Empty & error states
SEO, Open Graph, and structured data
Documentation code blocks with live preview
Carousels, galleries, and before/after comparisons
Date pickers and scheduling
Context menus and dropdown actions
Tags, chips, and multi-value inputs
Roadmap & kanban
Form inputs & controls
Progress, status & badges
Scrolling & feeds
Profile, avatars & identity
Social proof & logo clouds
Masonry & media grids
Table pagination, search & bulk selection
Banners & announcements
Footer layouts
Onboarding & first run
Waitlist & coming soon
Design Tips
Color & surfaces
Harness overview
Row, Column & Grid
Spacing & rhythm
Icons & buttons
Reveal & motion
Theme tokens, FOUC-free init, and runtime style controls
Tooltips and hover cards
Block updates
Block updates changelog
Agent Resources
Column, not Flex
Semantics over CSS
Typography scale
Common gotchas
Block anchors
Validate generated code
Pro block registry
Match task bundles
TrademarkTrademark
Ctrl k
Search...
Sign up
Once UI Handbook
Beginner Guides
What is Once UI?
Install & config
Page skeleton
Your first page
Build And Launch
How to launch a portfolio site that actually gets you hired
How to build a documentation site with MDX and Next.js
How to ship a landing page and dashboard with authentication in Next.js
How to launch a social app with Next.js and Supabase
Vibe Coding
Introduction to vibe coding
Set up your local dev environment
Essential tools for vibe coding
Build your first Once UI app
Common Patterns
Hero section
Static panel
Form layout
Highlighted card
Responsive stacking
Decoration layers
Dialog & modal
Toast & feedback
Tables & lists
Loading states
App shell navigation
Dashboard & charts
Chat & messaging
Auth & verification
Settings & split panels
Data filters & toolbar
Command palette
Pricing & plans
Accordion & FAQ
Media & uploads
Empty & error states
SEO, Open Graph, and structured data
Documentation code blocks with live preview
Carousels, galleries, and before/after comparisons
Date pickers and scheduling
Context menus and dropdown actions
Tags, chips, and multi-value inputs
Roadmap & kanban
Form inputs & controls
Progress, status & badges
Scrolling & feeds
Profile, avatars & identity
Social proof & logo clouds
Masonry & media grids
Table pagination, search & bulk selection
Banners & announcements
Footer layouts
Onboarding & first run
Waitlist & coming soon
Design Tips
Color & surfaces
Harness overview
Row, Column & Grid
Spacing & rhythm
Icons & buttons
Reveal & motion
Theme tokens, FOUC-free init, and runtime style controls
Tooltips and hover cards
Block updates
Block updates changelog
Agent Resources
Column, not Flex
Semantics over CSS
Typography scale
Common gotchas
Block anchors
Validate generated code
Pro block registry
Match task bundles
TrademarkTrademark
Once UIDocumentationBlog
© Once UI. All rights reserved.
Built with Aveiro
Design Tips

Row, Column & Grid

Layout decision tree — when to use Row, Column, Flex, and Grid.
Updated 19d ago
Harness overview
Spacing & rhythm
8 min · Beginner · Foundations
Row and Column are your defaults. Flex is for dynamic direction. Grid is for columns.

Decision tree

Need layout? ├── Vertical stack → Column ├── Horizontal row → Row ├── Direction changes at breakpoints → Flex (or Row/Column with s={{ direction }}) └── Multi-column grid → Grid

Row and Column

Thin wrappers around Flex with fixed direction. Always prefer these for static layouts:

Flex — only when direction changes

Use Flex (or responsive props on Row/Column) when layout flips at breakpoints: Breakpoint props: xl, l, m, s, xs — larger breakpoints cascade down. Never write media queries for layout.

Grid

For explicit column counts:

Alignment shorthands

Shorthand
Expands to
`center``horizontal="center" vertical="center"`
`fill``fillWidth fillHeight`
`fit``fitWidth fitHeight`

Write this / not this

✅ Once UI way
❌ Common mistake
`Column` with `gap="16"``Flex` with `direction="column"`
`Row` with `gap="16"``Flex` with `direction="row"`
`center``horizontal="center" vertical="center"`
`s={{ direction: "column" }}``@media (max-width: 768px) { flex-direction: column }`

Other layout components

Component
When to use
`MasonryGrid`Pinterest-style variable-height columns
`SplitView`Resizable two-pane (chat, settings)
`Scroller`Horizontal scroll regions
`LogoCloud`Logo grid — always set `columns`

Check yourself

  • Static vertical layout uses Column, not Flex direction="column"
  • Static horizontal layout uses Row
  • Responsive layout uses breakpoint props, not CSS media queries

Next step

→ Spacing & rhythm
<Column gap="16">
  <Heading variant="display-strong-s">Title</Heading>
  <Text variant="body-default-m" onBackground="neutral-weak">Body</Text>
</Column>

<Row gap="16" vertical="center">
  <Icon name="check" />
  <Text variant="body-default-s">Aligned row</Text>
</Row>
<Row gap="24" s={{ direction: "column" }}>
  <Column fill>Left panel</Column>
  <Column fill>Right panel</Column>
</Row>
<Grid columns="3" gap="24" s={{ columns: "1" }}>
  <Column>Item 1</Column>
  <Column>Item 2</Column>
  <Column>Item 3</Column>
</Grid>