- Docs
- Tooltip
Tooltip
A tooltip displays a description of an element on hover or focus.
Preview
Code
Installation
Manual
Install the following dependencies:
Copy and paste the following code into your project.
Loading...
Update the import paths to match your project setup.
Usage
import { Tooltip, TooltipTrigger } from "@/components/ui/tooltip"
<TooltipTrigger>
<Button>Hover</Button>
<Tooltip>
<p>Add to library</p>
</Tooltip>
</TooltipTrigger>
Position
Preview
Code