Avatar Group Tooltip Names
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.
avatargrouptooltiphoverspring
Installation
Run the shadcn CLI in a project with Tailwind CSS. The component lands in components/pixelpapa/avatar-group-tooltip-names.tsx.
$pnpm dlx shadcn@latest add "https://pixelpapa.com/r/avatar-group-tooltip-names.json"Manual install+
1. Install the dependencies.
$pnpm add motion2. Copy the code from the Code tab above into your project. It imports the cn helper from @/lib/utils, which every shadcn project already has.
Build it with AI
Prefer to let an agent do the wiring? Copy this prompt, describe where the component should go, and paste.
AI prompt
Paste into Claude, Cursor, v0 or Lovable
Add the "Avatar Group Tooltip Names" component from PixelPapa UI to this project. What it is: 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. Category: Avatars. Depends on: motion. 1. Install it with the shadcn CLI: npx shadcn@latest add "https://pixelpapa.com/r/avatar-group-tooltip-names.json" (If the CLI is unavailable, fetch that URL, write files[0].content to components/pixelpapa/avatar-group-tooltip-names.tsx and install the listed dependencies.) 2. Import it from "@/components/pixelpapa/avatar-group-tooltip-names" 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 Hover CardAn avatar that opens a profile popover on hover or focus, scaling out of the trigger on a spring with forgiving open and close delays.
- Avatar Stack ExpandAn overlapping avatar stack that springs apart on hover to show first names, with a +N chip that deals out the rest.
- Avatar Status RingAn 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 RingStory avatars with a gradient ring that breaks into spinning dashes while the story loads, then settles into a quiet seen state.
- Avatar Upload DropzoneA circular avatar dropzone: its dashed ring spins and swells when a file hovers over it, then the photo drops in over the initials fallback.