TooltipNew
A name and shortcut for an icon. The first one waits; after that they glide from trigger to trigger like one label travelling along the toolbar.
Used forIcon toolbarsDense tablesNavigation railsDisabled actions
Install with the shadcn CLI
Older shadcn CLI, or a network that blocks ui.shadcn.com? Install by URL: shadcn add https://hairlineui.com/r/tooltip.json. More
Templates
Need the whole page?
65 Next.js landing pages, each designed from scratch. Try any of them live; one is $39, all of them $159, and 8 are free.
Where it’s used
Icon toolbars
Names and shortcuts for Bold, Italic, Link.
Dense tables
Explaining a truncated value or an icon column.
Navigation rails
Labels for a collapsed sidebar.
Disabled actions
Saying why something can't be done yet.
What it handles for you
A row of tooltips that each wait and fade on their own feels like flicker. Shared warm state makes them one surface that moves.
Warm glide
Within 450ms of the last one, the next shows at once and slides over from its position.
Placement
Flips to the other side and shifts to stay 8px inside the window.
Shortcuts
A kbd after the label, dimmed.
Accessible
role="tooltip" and aria-describedby on the trigger; focus-visible shows it.
Overview
Tooltips usually fade in one by one, each with its own delay, so running along a toolbar flickers. Here the first one rises off its trigger after a short rest; while it is warm, the next one shows at once and glides over from where the last one was. A press, Escape or leaving hides it, keyboard focus shows it, and touch never does.
States
- first
- After 500ms on the trigger it rises 6px from the side it sits on, out of a 4px blur, from 0.96 (320ms).
- warm
- The next trigger's tooltip shows at once and glides from the previous position (300ms).
- hidden
- Leaving, a press or Escape fades it (140ms).
Usage
Props
- children
- ReactElement
- The trigger; it gets aria-describedby while showing.
- content
- ReactNode
- The text.
- shortcut
- string
- A key or chord after the text.
- side / align= "top" / "center"
- Side / Align
- Where it sits.
- delay= 500
- number
- Rest before the first one shows.
- disabled= false
- boolean
- Never show.
Accessibility and motion
- Placement, presence and dismissal live in floating.ts, shared by tooltip, popover, dropdown and context menus: they all flip, shift, enter and leave the same way.
- Touch never shows a tooltip: put anything important in the label itself.
- Reduced motion: it fades, no glide.
Requirements
React 19, Tailwind CSS v4 and shadcn/ui theme variables (any style, light and dark). Icons from lucide-react.
Source
Registry item: /r/tooltip.json


