Skip to content
Data Display

Avatar Group

Overlapping avatar stack with a "+N" overflow chip.

Import

tsx
import { AvatarGroup } from "@cooud-ui/ui";
bash
npx cooud-ui add avatar-group

Examples

API Reference

Generated from the component's exported types.

AvatarGroupProps

Extends HTMLAttributes<HTMLDivElement>, VariantProps<typeof avatarGroupItemVariants>

PropTypeDefaultDescription
avatars
AvatarGroupAvatar[]Avatars to stack. Compose `<Avatar>` children, or pass `avatars` for the data-driven shorthand. `avatars` takes precedence when both are provided.
max
numberShow the first `max` avatars, then a "+N" overflow chip for the rest.
spacing
string"-space-x-2"Horizontal overlap between avatars as a Tailwind negative-margin class (e.g. `-space-x-2`). Defaults to a tasteful offset.
size
"sm" | "md" | "lg""md"