Once UI Handbook
Vibe coding
Introduction to vibe coding
Set up your local dev environment
Essential tools for vibe coding
Build your first Once UI app
Getting started
What is Once UI?
Install & config
Page skeleton
Your first page
Upgrade from 1.8 to 2.0
Once UI without Next.js
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
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
Forms that wire themselves
An icon rail that opens on hover
Maps without an API key
Segmented controls that slide
One EmptyState for every blank screen
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
Border radius & nested corners
Bring your own icons
Give one section its own style
Override Once UI styles without !important
A logo before you have one
Agent resources
Column, not Flex
Semantics over CSS
Typography scale
Common gotchas
Block anchors
Validate generated code
Pro block registry
Match task bundles
Block updates
Block updates changelog
TrademarkTrademark
Ctrl k
Search…
Sign up
Once UI Handbook
Vibe coding
Introduction to vibe coding
Set up your local dev environment
Essential tools for vibe coding
Build your first Once UI app
Getting started
What is Once UI?
Install & config
Page skeleton
Your first page
Upgrade from 1.8 to 2.0
Once UI without Next.js
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
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
Forms that wire themselves
An icon rail that opens on hover
Maps without an API key
Segmented controls that slide
One EmptyState for every blank screen
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
Border radius & nested corners
Bring your own icons
Give one section its own style
Override Once UI styles without !important
A logo before you have one
Agent resources
Column, not Flex
Semantics over CSS
Typography scale
Common gotchas
Block anchors
Validate generated code
Pro block registry
Match task bundles
Block updates
Block updates changelog
TrademarkTrademark
Once UIDocumentationBlog
© Once UI. All rights reserved.
Built with Aveiro
Common Patterns

An icon rail that opens on hover

Use Nav's collapsed, expandOnHover and expandedWidth props to build an editor-style icon rail that opens over the page instead of showing a tooltip per icon.
Updated 22 days ago
Forms that wire themselves
Maps without an API key
4 min · Pattern · Navigation
Since 2.6, Nav can collapse to one column of icons and open over the page on hover, so an editor sidebar doesn't need a tooltip on every icon.

Why icon rails usually feel cheap

Editors and dense apps keep only the icons in the sidebar to give the canvas room. The usual fix for "what does this icon do" is a tooltip per icon. It works, but you read one label at a time, and next to native apps it feels second-rate. @once-ui-system/core 2.6 makes the rail a Nav feature instead. You don't compose it by hand, and you don't add tooltips.

Collapse the Nav

Set collapsed and the Nav narrows to a single icon column. Labels, badges and section headings fade out, and any NavGroup closes (it reopens when the rail expands). Every row still answers to its label for a screen reader, so nothing is lost for keyboard and assistive tech users. The collapsed width follows the density: 64px for normal and spacious, 36px for compact, plus the padding you give the Nav.

Open it over the page

Add expandOnHover and the rail opens, labels and all, when a mouse rests on it or keyboard focus moves into it. Escape or moving focus away closes it. Touch never opens it, and reduced motion drops the animation. The important part is that it keeps its collapsed width in the layout. It widens over the content beside it rather than pushing it, so your panel never jumps. expandedWidth sets how wide it opens, in rem or a spacing token, and defaults to 16.
<Row fill>
  <Nav aria-label="Editor" collapsed expandOnHover expandedWidth={12} padding="8" borderRight>
    <NavItem icon="pages" label="Pages" />
    <NavItem icon="grid" label="Layouts" selected />
    <NavItem icon="sparkle" label="Components" />
    <NavItem icon="settings" label="Settings" />
  </Nav>
  <Column fill>{panel}</Column>
</Row>
If you want a button that toggles the rail instead of hover, leave out expandOnHover. Then collapsed is a static icon rail and you flip it from your own state.

Two things that trip people up

  • Clipping. The open rail sits above whatever follows it. If an ancestor clips overflow, for example a sidebar Column with overflowY="auto", the open rail gets cut off at that edge. Keep the Nav outside it.
  • Missing icons. A collapsed row is just its icon. Give every NavItem an icon, or that row shows as an empty pill.

Write this / not this

Do
Avoid
<Nav collapsed expandOnHover>A narrow Column of IconButtons
A label on every NavItemA Tooltip wrapped around each icon
The Nav outside scrolling containersA rail inside overflowY="auto"

Reference

The Nav page in the Once UI docs has a live example of the rail and the full prop list.
Hero sectionHero composition — eyebrow, headline, actions, and optional ambient glow.
Static panelThe surface recipe for non-interactive panels — stats, settings, feature boxes.
Form layoutStack fields, group sections, and place actions in Once UI forms.
Highlighted cardInteractive Card with brand glow for featured pricing tiers and CTAs.
Responsive stackingBreakpoint props for mobile stacking — no media queries needed.
Decoration layersAbsolute Background layers, glow budget, and placement rules.
Dialog & modalControlled dialogs with title, footer actions, and stacked multi-step flows.
Toast & feedbackGlobal toast notifications via ToastProvider and useToast — plus when to use inline Feedback.
Tables & listsStructured data with Table, simpler stacks with List — plus empty and loading states.
Loading statesSkeleton placeholders for content areas, spinners for actions — keep layout stable while data loads.
App shell navigationSticky headers, MegaMenu, Kbar command palette, and Pro block app chrome.
Dashboard & chartsKPI stat rows, CountFx viewport latches, sparkline charts, and activity tables.
Chat & messagingMulti-pane chat layouts with channel sidebars, feeds, composers, and streaming replies.
Auth & verificationSplit sign-up layouts, social auth, PasswordInput, and OTP verification in stacked dialogs.
Settings & split panelsSplitView settings layout with section sidebar, form panels, toggles, and danger zones.
Data filters & toolbarCompose table toolbars with search, SegmentedControl view switchers, date ranges, and filter chips.
Command paletteWire the Kbar module for searchable navigation, actions, and keyboard shortcuts in your app shell.
Pricing & plansThree-tier pricing grids, billing toggles, comparison tables, and FAQ accordions from the pricing task bundle.
Accordion & FAQAccordionGroup for FAQ sections, split-column layouts, autoCollapse behavior, and standalone Accordion usage.
Media & uploadsMediaUpload drag-and-drop, compression, preview, and profile photo patterns in settings forms.
Empty & error statesCompose empty, error, and filtered-empty states with Icon, Heading, Text, and Button — distinct from loading skeletons.
SEO, Open Graph, and structured datagenerateMetadata, Schema JSON-LD, and server-side OG fetch — wire once in your layout.
Documentation code blocks with live previewCodeBlock with prismjs, multi-file tabs, diff view, and side-by-side preview.
Carousels, galleries, and before/after comparisonsCarousel for rotators and galleries; CompareImage for draggable A/B sliders.
Date pickers and schedulingDateInput for single dates, DateRangePicker for ranges — calendar UI with optional time selection.
Context menus and dropdown actionsRight-click ContextMenu and click Dropdown patterns for contextual actions without cluttering the UI.
Tags, chips, and multi-value inputsTagInput, Chip, Tag, and Checkbox patterns for filters, labels, and multi-select form fields.
Roadmap & kanbanStatus columns, task cards, StatusIndicator dots, and the roadmap task bundle — Roadmap1 Pro block as gold reference.
Form inputs & controlsSelect, Switch, Checkbox, RadioButton, Textarea, and NumberInput — field types beyond basic Input stacking.
Progress, status & badgesProgressBar for completion, StatusIndicator for state dots, Badge for counts and labels.
Scrolling & feedsScroller for horizontal chip rails, InfiniteScroll for paginated feeds, and overflow patterns without scroll traps.
Profile, avatars & identityAvatar sizes, status indicators, profile headers, AvatarGroup stacks, and member list rows.
Social proof & logo cloudsLogoCloud rotation, static partner grids, testimonial panels, and trust strips under heroes.
Masonry & media gridsMasonryGrid for variable-height galleries; Grid vs masonry decision tree and portfolio cells.
Table pagination, search & bulk selectionTable1 Pro block patterns — search, page size, pagination footer, and bulk action bars.
Banners & announcementsFull-width Banner strips for product news, maintenance windows, and dismissible upgrade prompts.
Footer layoutsMinimal bars, CTA closers, and multi-column sitemap grids — Footer1–4 Pro block patterns.
Onboarding & first runWelcome dialogs, setup checklists, guided empty dashboards, and profile completion nudges.
Waitlist & coming soonCentered hero, email capture, RevealFx entry, and subscriber trust rows from Waitlist1.
Forms that wire themselvesUse Field, Fieldset, SubmitButton and FormErrorSummary inside Form to get accessible labels, hints, errors, pending state and an error summary without hand-written ids.
An icon rail that opens on hoverUse Nav's collapsed, expandOnHover and expandedWidth props to build an editor-style icon rail that opens over the page instead of showing a tooltip per icon.
Maps without an API keyHow to put an interactive, theme-aware map on a page with Once UI's Map module: markers from data, clustering, popups, areas, and the props that keep it friendly on long pages.
Segmented controls that slideHow to set up SegmentedControl: the sliding selection, tabs versus radio semantics, a non-scrolling row for narrow sidebars, and a second line of description per option.
One EmptyState for every blank screenHow to use the EmptyState component: picking a size for a page, card or table, a Mascot or icon above the title, the right heading level, and how to write the title, line and action.