Tooltip
A small label that appears on hover or focus. Short delay, instant hand-off between neighbours.
OverlaysRadix Tooltip
Playground
Tweak the props, the preview and the code follow.
Props
150
<Tooltip>
<TooltipTrigger asChild>
<Button variant="outline">Hover me</Button>
</TooltipTrigger>
<TooltipContent showArrow>
Copy to clipboard
<kbd>⌘C</kbd>
</TooltipContent>
</Tooltip>Installation
npx @plumsydev/plum-ui add tooltipUsage
import { Tooltip, TooltipContent, TooltipTrigger } from "@/components/ui/tooltip"<Tooltip>
<TooltipTrigger>Hover</TooltipTrigger>
<TooltipContent>Add to library</TooltipContent>
</Tooltip>Examples
Sides & arrow
Pass showArrow for a pointer and side to position it.
Feedback
The label swaps after the action and the tooltip stays open long enough to read it.
API Reference
TooltipProvider
Optional. Wrap a group of tooltips so moving between them skips the delay.
| Prop | Type | Default |
|---|---|---|
delayDurationDelay before opening, in ms. | number | 150 |
skipDelayDurationWindow during which the next tooltip opens instantly. | number | 300 |
TooltipContent
| Prop | Type | Default |
|---|---|---|
sidePreferred side. | "top" | "right" | "bottom" | "left" | "top" |
sideOffsetDistance from the trigger in px. | number | 6 |
showArrowRenders an arrow pointing to the trigger. | boolean | false |
Notes
- A
<kbd>inside the content is styled automatically — handy for shortcuts. - Tooltips are not reachable on touch devices. Never hide essential information in one.