Tooltip
An interactive, animated popup that displays information related to an element when it receives keyboard focus or when the mouse hovers over it.
Installation
npx shadcn@latest add https://scrollxui.dev/registry/tooltip.json
Usage
import {
Tooltip,
TooltipContent,
TooltipTrigger,
} from "@/components/ui/tooltip"
<Tooltip>
<TooltipTrigger>Hover</TooltipTrigger>
<TooltipContent>
<p>Isn't it cool?</p>
</TooltipContent>
</Tooltip>
API Reference
Tooltip
An interactive, animated popup that displays information related to an element when it receives keyboard focus or when the mouse hovers over it.