Tooltip

React tooltip on Base UI with a provider for delay, a trigger, and content that positions on any side with an arrow and portal. Drop-in shadcn Tooltip API.

src/registry/ui/tooltip.tsx/r/tooltip.json

Installation#

bash
npx shadcn@latest add @minidev/tooltip

MiniDev UI is in the shadcn registry directory, so the short form works with no setup. Older CLI versions can use the full URL: npx shadcn@latest add https://ui.minidev.pro/r/tooltip.json

Usage#

tsx
import { Tooltip } from "@/components/ui/tooltip"

export function Example() {
  return <Tooltip />
}

API reference#

Also accepts every prop of TooltipPrimitive.Root props, passed through to the root element.

Dependencies#

npm

@base-ui/react

Built from

All dialog, drawer and popover components

Learn more