Tooltip
A popup that displays information related to an element when the element receives keyboard focus or the mouse hovers over it.
A popup that displays information related to an element when the element receives keyboard focus or the mouse hovers over it.
import {
Button,
Tooltip,
TooltipContent,
TooltipProvider,
TooltipTrigger,
} from "@notion-kit/shadcn";
export default function Demo() {
return (
<TooltipProvider>
<Tooltip>
<TooltipTrigger asChild>
<Button size="md">Hover</Button>
</TooltipTrigger>
<TooltipContent>
<p>Add to library</p>
</TooltipContent>
</Tooltip>
</TooltipProvider>
);
}
pnpm add @notion-kit/shadcn