Design System
Overlays

Tooltip

A small hint shown on hover or focus. Non-interactive by design — it cannot hold buttons or links, and its content must never be the only way to reach information.

Purpose

A tooltip explains a control whose meaning is not obvious — most often an icon-only button. The root layout already provides the app-wide TooltipProvider, so you only compose the three parts below.

If the content is interactive, use Popover: focus cannot enter a tooltip.

Hint

Structure

PropertyValue
SurfaceInverted: --sidebar fill with --sidebar-foreground text, --shadow-8
Typography12px / Inter 500 (text-xs font-medium)
Radius--radius-md
Padding10px × 6px
Placement6px offset from the trigger; fade + zoom entrance

Best practices

Do

  • Keep it to one short phrase.
  • Give the icon button its own aria-label as well — the tooltip is not a substitute.

Don't

  • Put a link or button inside; focus cannot reach it.
  • Hide information that a person needs in order to complete the task.

Accessibility & keyboard

  • Opens on hover and on keyboard focus, so it is not mouse-only.
  • Keyboard: Tab to the trigger to show; Esc dismisses.

Every Tooltip part and prop in Storybook

On this page