AvatarGroup
Overlapping avatars with a +N overflow chip. Hover gently enlarges the avatar on a spring, keeping stack order.
Size:
- +6 more
import { AvatarGroup } from "@/components/ui/avatar-group";export function Team({ users }: { users: { alt: string; src?: string }[] }) { return <AvatarGroup users={users} max={4} size="lg" />;}<AvatarGroup>
Overlapping avatars with a +N overflow chip. Hover gently enlarges the avatar on a spring, staying in stack order.
users*GroupUser[]People in order;
altis each one's name.maxdefault4numberHow many avatars to show before the
+Nchip.sizedefault"default""sm" | "default" | "lg"Size of every avatar and the chip.
| Prop | Type | Default |
|---|---|---|
users*People in order; | GroupUser[] | — |
maxHow many avatars to show before the | number | 4 |
sizeSize of every avatar and the chip. | "sm" | "default" | "lg" | "default" |
- type GroupUser
- { alt: string; src?: string; id?: string; }
* required. Every component also takes className.