--- title: Tooltip description: A popup that displays information related to an element when the element receives keyboard focus or the mouse hovers over it. component: true links: doc: https://www.radix-ui.com/docs/primitives/components/tooltip api: https://www.radix-ui.com/docs/primitives/components/tooltip#api-reference source: radix: true shadcn: true --- ## Installation CLI Manual ```bash npx shadcn-ui@latest add tooltip ``` Install the following dependencies: ```bash npm install @radix-ui/react-tooltip ``` Copy and paste the following code into your project. Update the import paths to match your project setup. ## Usage ```tsx import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from '@/components/ui/tooltip' ``` ```tsx Hover

Add to library

```