Tooltip
A short label shown on hover, in any of 4 directions.
Usage
Installation
npx wunderui-cli add tooltipWrites the source into your project with its dependencies and, on first use, the styles — see Installation.
Then import what you need:
import {
Tooltip,
TooltipContent,
TooltipTrigger,
} from "@/components/ui/tooltip"Examples
Above
The tooltip opens above its trigger — hover the button.
Below
The tooltip opens below its trigger — hover the button.
Left
The tooltip opens to the left of its trigger — hover the button.
Right
The tooltip opens to the right of its trigger — hover the button.
In context
How the component is used inside real screens — the same compositions as the Usage section of the Figma page.
Names on an avatar stack
The overlapping faces stay compact; hovering one tells you who it is, without a legend taking up room.
Hint on a button
A short explanation above a control, shown on hover or keyboard focus — for anything whose label alone does not say enough.