Avatar group
Overlapping avatars with an overflow count and a single accessible name for the whole set.
Live preview
Source
The exact file rendered in the preview above.
components/demos/avatar-group.tsx
components/ui/avatar.tsx
Demo source — adapt to your project. Foundry is not published as a package.
Usage
For showing membership at a glance — a team, a set of reviewers, attendees. The overflow chip keeps the control a fixed width no matter how large the group grows.
- Every avatar in the group is decorative; the group carries one label and a visually hidden full list.
- Pair with a total count in text when the exact number matters.
Variants and states
Every entry below is a genuine difference in behaviour or layout, and every one of them is visible in the preview above.
- Default maximum of four
- Custom maximum
- Three sizes
Accessibility
- Single announcement
- A labelled `role="group"` plus a visually hidden comma-separated list, so a screen reader reads the members once, in order.
- Overflow chip
- The +n chip is inside the labelled group, so the total is announced with the members.
Foundry implements published ARIA patterns and is tested against them. No WCAG certification is claimed — see the accessibility documentation for what is and is not covered.
Related
All componentsAvatar
Deterministic initials on a name-derived tint, in five sizes, with an optional indicator.
starter4 variantsCard
A discrete record in a collection, with five tones and a composable header, title, description and footer.
starterFeatured6 variantsTeam grid
Portrait cards with deterministic initials in place of photography.
starter3 variants