Tooltip
A short label revealed on hover or keyboard focus.
- Overlays
- 1 file
- 1 npm package
- Accessibility notes
Loading the example…
pnpm dlx @dowel-ui/cli add tooltipnpm packages installed: radix-ui.
import { TooltipProvider } from "@/components/ui/tooltip";Default
Icon Buttons
Sides
Long Text
Spring Pop
<Tooltip>
Every prop of Radix UI’s Tooltip.Root, plus className.
<TooltipContent>
Every prop of Radix UI’s Tooltip.Content, plus className.
Opens on focus as well as hover, and Escape dismisses it. Never put essential or interactive content in a tooltip: it is unreachable on touch and vanishes on blur. For an icon-only button, prefer aria-label for the name and use the tooltip only to repeat it visually. The opening pop is decoration and stops under reduced motion.
8/8
checks passed
- Tested — passes
- axe assertion — passes
- Keyboard tested — does not apply
- Storybook examples — passes
- Accessibility documented — passes
- Semantic tokens only — passes
- Motion from tokens — passes
- className merged — passes
- Visible focus — does not apply
- No fixed widths — passes