About
A stack of overlapping user avatars with ring borders that collapses extra members into a "+N" counter, used for showing team members or participants.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Avatar Group to your project and fits it to your theme.
Code
How Avatar Group is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar";
import AvatarGroup from "@/components/ui/avatar-12";
export default function AvatarGroupDemo() {
return (
<AvatarGroup>
<Avatar className="-ml-2 cursor-pointer first:ml-0">
<AvatarImage
alt="@shadcn"
src="https://cdn.21st.dev/assets/localized/513d06f542692036ff0bb17938f04b3efd60567ba2cae08049469d21f18e0524.jpg"
/>
<AvatarFallback className="bg-indigo-500 text-white">CN</AvatarFallback>
</Avatar>
<Avatar className="-ml-2 cursor-pointer first:ml-0">
<AvatarFallback className="bg-green-600 text-white">CN</AvatarFallback>
</Avatar>
<Avatar className="-ml-2 cursor-pointer first:ml-0">
<AvatarFallback className="bg-red-500 text-white">AB</AvatarFallback>
</Avatar>
<Avatar className="-ml-2 cursor-pointer first:ml-0">
<AvatarFallback className="bg-indigo-500 text-white">VK</AvatarFallback>
</Avatar>
<Avatar className="-ml-2 cursor-pointer first:ml-0">
<AvatarFallback className="bg-orange-500 text-white">RS</AvatarFallback>
</Avatar>
</AvatarGroup>
);
}







