Tooltip

A hint on hover or focus, with an optional shortcut.

Installation

Examples

Default

A tooltip only adds a hint: its trigger keeps its own label. An Icon button shows its label as one already. Mount a TooltipProvider around the app, so moving from one trigger to the next shows its tip without waiting again.

demo.tsx

Sides

side opens it on the top, the default, or on the right, bottom, or left.

sides.tsx

With a shortcut

shortcut, written as Mod E, shows after the text, with Mod as ⌘ on a Mac and Ctrl elsewhere.

shortcut.tsx

Anatomy

Each part's data-slot, which a theme styles, is beside it.