# Avatar Hover Card — React Avatar Component

> An avatar that opens a profile popover on hover or focus, scaling out of the trigger on a spring with forgiving open and close delays.

- Category: [Avatars](https://pixelpapa.com/components/avatars.md)
- Tags: avatar, hover, popover, profile, card
- Dependencies: motion (plus React and Tailwind CSS v4)
- Last updated: 2026-11-13
- Live preview: https://pixelpapa.com/components/avatars/avatar-hover-card

## Install (PixelPapa Pro)

This is a Pro component. With a Pro or Scale plan and the `@pixelpapa` registry set up (https://pixelpapa.com/docs/installation#pro):

```bash
npx shadcn@latest add @pixelpapa/avatar-hover-card
```

The file is written to `components/pixelpapa/avatar-hover-card.tsx`. Source code is available to Pro members on https://pixelpapa.com/components/avatars/avatar-hover-card.

## AI prompt

```text
Add the "Avatar Hover Card" component from PixelPapa UI to this project.

What it is: An avatar that opens a profile popover on hover or focus, scaling out of the trigger on a spring with forgiving open and close delays.
Category: Avatars. Depends on: motion.

1. Install it with the shadcn CLI. It is a PixelPapa Pro component, so components.json needs the "@pixelpapa" registry with my API key (https://pixelpapa.com/docs/installation#pro):
   npx shadcn@latest add @pixelpapa/avatar-hover-card
   (If the CLI is unavailable, fetch https://pixelpapa.com/r/avatar-hover-card.json with the header "Authorization: Bearer $PIXELPAPA_API_KEY", write files[0].content to components/pixelpapa/avatar-hover-card.tsx and install the listed dependencies.)
2. Import it from "@/components/pixelpapa/avatar-hover-card" and place it where I describe below.
3. Keep its animation timings and accessibility attributes. Replace the demo copy and data with content that fits my product, and use my existing theme tokens (bg-background, text-foreground, bg-primary, border-border) rather than hard-coded colours.

Where to use it: <describe the page and position here>
```

## More avatars

- [Avatar Group Tooltip Names](https://pixelpapa.com/components/avatars/avatar-group-tooltip-names.md): An avatar row sharing one tooltip that glides from face to face on a spring while the hovered avatar lifts and its neighbours step aside.
- [Avatar Stack Expand](https://pixelpapa.com/components/avatars/avatar-stack-expand.md): An overlapping avatar stack that springs apart on hover to show first names, with a +N chip that deals out the rest.
- [Avatar Status Ring](https://pixelpapa.com/components/avatars/avatar-status-ring.md): An avatar wrapped in a presence ring: online radiates soft pulses, away dims to amber, busy holds a solid red, and the badge pops when status changes.
- [Avatar Story Ring](https://pixelpapa.com/components/avatars/avatar-story-ring.md) (Pro): Story avatars with a gradient ring that breaks into spinning dashes while the story loads, then settles into a quiet seen state.
- [Avatar Upload Dropzone](https://pixelpapa.com/components/avatars/avatar-upload-dropzone.md) (Pro): A circular avatar dropzone: its dashed ring spins and swells when a file hovers over it, then the photo drops in over the initials fallback.
