Skip to content
GitHub

Tooltip

Display information on hover or focus.

Installation

Usage

Tooltip vs Toggle Tooltip

You're viewing Tooltip—a label that shows on hover or focus. Use it when the content is supplementary and non-essential, and you're okay with touch users not having access.

Use Tooltip when

  • The trigger has its own purpose and the popup is supplementary.
  • The content is non-essential—nice-to-have clarity for sighted mouse/keyboard users.
  • You're okay with touch users not seeing it—tooltips only open on hover/focus, not on tap.
  • The content is short and non-interactive (no links or buttons inside).

Tooltip behavior

  • Hover or focus only — Opens on hover/focus; touch users cannot access it.
  • Non-interactive — Keep content short with no links or buttons.
  • Supplementary — Best for nice-to-have information, not critical content.

Consider Toggle Tooltip when

  • The trigger's primary purpose is to reveal the content.
  • The content is essential and should be accessible to touch users and screen readers.
  • You need click-to-open so everyone can access it.
  • The content may be interactive (links, buttons).

Positioning

Use the positioning prop to change the position of the tooltip.

Examples

With Keyboard Shortcut

Disabled Button

Show a tooltip on a disabled button by wrapping it with a span.

API Reference

Tooltip

Root component that wraps the tooltip. Manages open state and positioning.

TooltipTrigger

Element that shows the tooltip on hover or focus. Button by default; use asChild for custom elements.

TooltipContent

Tooltip content shown in a popover on hover or focus.

TooltipArrow

Optional arrow pointing to the trigger. Place inside TooltipContent.


For a complete list of props, see the Ark UI documentation.