---
title: Hover Card
description: For sighted users to preview content available behind a link.
component: true
links:
doc: https://www.radix-ui.com/docs/primitives/components/hover-card
api: https://www.radix-ui.com/docs/primitives/components/hover-card#api-reference
---
## Installation
CLI
Manual
```bash
npx shadcn@latest add hover-card
```
Install the following dependencies:
```bash
npm install @radix-ui/react-hover-card
```
Copy and paste the following code into your project.
Update the import paths to match your project setup.
## Usage
```tsx showLineNumbers
import {
HoverCard,
HoverCardContent,
HoverCardTrigger,
} from "@/components/ui/hover-card"
```
```tsx showLineNumbers
Hover
The React Framework – created and maintained by @vercel.
```