Skip to content
esc

Tooltip

Overlayshadcn/ui

A short black label that appears on hover or keyboard focus, mostly to name an IconButton or explain a disabled control.

When to use

  • Keep it to a few words.
  • Use it on desktop; touch screens never show it.
  • Don't put links or buttons inside; use a Dialog or Sheet.
  • Don't hide information the user needs to finish a task inside a tooltip.

Accessibility

Role
tooltip
Keyboard
Shows on focus. Esc hides it.
Notes
It describes the trigger; IconButton still needs its own label.

Props

  • side= 'top'

    'top' | 'right' | 'bottom' | 'left'

    On TooltipContent.

  • delayDuration= 300

    number

    On TooltipProvider; wrap the app once to share it.

Prompt for your agent

Use the UnbuiltUI Tooltip. Call unbuilt_get_component("Tooltip") first and follow its spec: variants, states, usage rules and accessibility.

unbuilt_get_component returns

0 variants1 state2 props4 usage rules3 a11y notes3 tokens1 example

Add it with shadcn

$npx shadcn add https://unbuiltui.com/r/tooltip.json

Tokens · 3

bg.inversefg.inverseradius.sm