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

Tooltips and hover cards

Tooltip for inline hints; HoverCard for rich previews on hover — keep discoverability without modal noise.
Updated 19d ago
Theme tokens, FOUC-free init, and runtime style controls
4 min · Design tip
The tooltip is a compact label for short hints. The hover card is a portal panel for rich previews — avatars, bios, stats. Use tooltips for one line; hover cards when the user needs more context.

Tooltip vs hover card

Need
Component
Content size
Icon-only button labelTooltipOne short phrase
Keyboard shortcut hintTooltipText + optional prefix icon
User profile previewHover cardAvatar, name, tags, links
Feature explanationHover cardMulti-line description
The tooltip renders as a small Row with role tooltip. The hover card wraps the animation primitive with hover trigger type and portals content above or beside the trigger.

Tooltip basics

The tooltip accepts a label and optional prefixIcon or suffixIcon. It is a presentational shell — pair it with a parent that handles show/hide positioning (for example an IconButton wrapper or a focusable trigger).
Row vertical="center" gap="4"
  IconButton icon="info" variant="ghost" aria-label="More info"
  Tooltip label="Exports include all filtered rows" prefixIcon="info"
Keep labels under ~60 characters. If the explanation needs a paragraph, use a hover card instead.

When not to use tooltips

  • Mobile-only flows (no hover) — use visible helper Text or a Dialog
  • Critical instructions the user must read — put them inline
  • Interactive content (links, buttons) inside the hint — use a hover card

Hover card for rich previews

The hover card takes a trigger element and children for the floating panel. Defaults: fade + slight slide-up, portal rendering, placement top. Typical profile preview structure inside the card:
Column padding="16" gap="12" radius="l" background="page" border="neutral-alpha-weak" maxWidth={24}
  Row gap="12" vertical="center"
    Avatar size="l"
    Column gap="4"
      Heading variant="heading-strong-s" → name
      Text variant="body-default-s" → role
  Text variant="body-default-s" → short bio
  Row gap="8" wrap
    Tag → skill labels
Set tabIndex=0 on non-focusable triggers (Avatar, Icon) so keyboard users can reach the card. The animation layer shows the panel on hover and focus.

Placement and motion

Override placement (top, bottom, start, end) when the trigger sits near viewport edges. Tune duration or scale sparingly — defaults are tuned for UI density.

Density guidelines

Surface
Recommendation
Data table column headerTooltip on info icon
Avatar in comment threadHover card with name + role
Chart data pointTooltip with value label
Pricing feature listInline Text, not hover-only
Never hide required information exclusively behind hover. Tooltips and cards supplement visible UI; they do not replace it.

Write this / not this

✅ Once UI way
❌ Common mistake
Tooltip for one-line hintsParagraph text in a tooltip
Hover card for multi-field previewsStacking 5 tooltips on one icon
tabIndex on hover triggersHover-only with no keyboard path
Visible labels on icon buttonsTooltip as the only accessible name

Check yourself

  • Icon buttons have aria-label even when a tooltip exists
  • Hover card content fits without horizontal scroll (maxWidth)
  • Critical info is visible without hovering
  • Triggers near screen edges use adjusted placement
  • Tag rows in previews use the Tag component, not raw spans

Related

→ Icons & buttons → Dashboard & charts → Full reference: docs.once-ui.com — HoverCard