- Docs
- components
- Tooltip
Tooltip
A tooltip displays a description of an element on hover or focus.
Preview
Code
Installation
CLI
Copy & Paste
npx @sly-cli/sly add jolly-ui tooltip
Note: Only the default style can be installed via CLI at the moment
Usage
import { Tooltip, TooltipTrigger } from "@/components/ui/tooltip"
<TooltipTrigger>
<Button>Hover</Button>
<Tooltip>
<p>Add to library</p>
</Tooltip>
</TooltipTrigger>
Position
Preview
Code