Home Components Tooltip
React Tooltip Components
15 free React tooltips built with Tailwind CSS and shadcn/ui conventions. Copy the code or install with the shadcn CLI. Great for icon hints, keyboard shortcuts, and rich content.
Tooltip 1 : Default dark tooltip with a pointer arrow and a short message on button hover.Tooltip 2 : Light neutral grey tooltip with dark text that keeps the same look across themes.Tooltip 3 : Tooltip with the pointer arrow hidden, showing only the plain message box.Tooltip 4 : Pricing tooltip showing a monthly per-user price next to a rounded Popular badge.Tooltip 5 : Tooltip showing a small user avatar beside the person's name.Tooltip 6 : Wider info tooltip with an icon, bold heading and a short paragraph of help text.Tooltip 7 : Red warning tooltip with a white alert icon and a caution message.Tooltip 8 : Tip tooltip with a yellow lightbulb icon before a keyboard shortcut hint.Tooltip 9 : Pill-shaped tooltip with fully rounded ends instead of square corners.Tooltip 10 : Four arrow buttons that show tooltips on the left, top, bottom and right sides.Tooltip 11 : Hover card with a feature preview image, short description and a Learn more link.Tooltip 12 : Hover card profile preview with an avatar, job title and active status line.Tooltip 13 : Hover card listing four team members with avatars, roles and workload percentages.Tooltip 14 : Project status hover card with a progress bar, start date, ETA and contributor avatars.Tooltip 15 : Centred security notice hover card with a shield icon in a circle and a reassurance message.
About React Tooltip Components A React tooltip is a short text label that appears when a user hovers over or focuses an element, like the name of an icon button. Watermelon UI tooltips are built on Radix UI Tooltip, with some variants using Radix Hover Card for richer previews, styled with Tailwind CSS. Add one with the shadcn CLI, wrap your app in TooltipProvider, then put the trigger and content inside Tooltip.
When to use it Labels for icon-only buttons in a toolbar. Short explanations of a field or metric. Full text for truncated names or values. When to use something else Use Popover when the content has links, buttons, or form fields. Use Dialog when the explanation is long or needs the user’s full attention. Use Badge when the information should always be visible, not only on hover. Frequently asked questions Why is my shadcn tooltip not showing? Most often the Tooltip is not inside a TooltipProvider, which Radix requires. Wrap your app or layout in TooltipProvider once and every tooltip inside it will work.
How do I change the tooltip delay? Set delayDuration on TooltipProvider for every tooltip, or on a single Tooltip root to override it. The value is in milliseconds.
How do I show a tooltip on a disabled button? Wrap the disabled button in a span and make the span the TooltipTrigger with asChild. Disabled buttons do not fire pointer events, so the tooltip cannot open from them directly.
Do tooltips work on mobile? Not reliably, because touch screens have no hover. Do not put essential information only in a tooltip; use visible text or a popover for anything users must read.
How to use React Tooltip Components Start from a React project with Tailwind CSS and shadcn/ui set up. Next.js, Vite, Remix, and Astro all work. Run npx shadcn@latest add https://registry.watermelon.sh/r/tooltip-1.json to add the source files to your project. Import it where you need it, then edit the Tailwind classes and design tokens to match your product. Dependencies installed with it: react-icons.
The code is yours: it lives in your repository, so there is no runtime package to keep updated. Watermelon UI is free and open source under the MIT license.
More: Free React components , UI library alternatives , guides .