niceui

Avatar Group

Overlapping avatars with initials fallback, hover lift and a +N overflow counter.

ReactTailwind CSSTypeScriptData displayMIT · Free
AKMJRSLP+9

Installation

01

Install with the shadcn CLI.

$ npx shadcn@latest add https://niceui.dev/r/avatar-group.json
02

Or copy the source manually into components/ui/avatar-group.tsx. No extra dependencies.

Usage

import { AvatarGroup } from "@/components/ui/avatar-group";

const people = ["Ada King", "Mia Jones", "Raj Shah", "Leo Park", "Noa Ito", "Sam Lee"];

export default function Example() {
  return <AvatarGroup people={people.map((name) => ({ name }))} max={4} />;
}

For AI assistants

This page is also available as Markdown and as a shadcn registry item. Use Copy prompt to hand the full source to Claude, Cursor or v0.