Skip to content

AvatarGroup ​

Several people as overlapping avatars, each with a profile on hover, with the rest as "+N".

Open in Storybook to try every prop.

When to use ​

Use an AvatarGroup forUse instead
Who's involved: a class's teachers, who can sign off, who's editingA list people need to read or act on (use a table or list)

Anatomy ​

PartRequiredNotes
avatarsYesAvatar each (with profile by default), overlapping, each with a white ring.
counterNo"+N" circle in surface grey, when there are more than max. Opens a list of the rest.

Properties ​

PropertyTypeDefaultDescription
usersAvatarUser[]—Required.
sizexs | sm | md | lg | xlmdAs Avatar.
maxnumber4Avatars shown before "+N". If only one would be hidden, all are shown ("+1" saves no space).
profilebooleantrueProfile card on each avatar.
labelstring"{n} people"Name of the group for screen readers.

Sizes ​

SizeAvatarOverlapRingCounter text
xs20px2px1px12px
sm28px4px2px12px
md36px6px2px12px
lg48px8px2px14px
xl64px12px2px16px

Overlaps are as large as they can be without the ring reaching the initials. "+N" list: 224px wide, up to 288px tall then scrolls; a 20px avatar, name and role per person.

Behaviour ​

ActionResult
Hover or focus an avatarIt comes to the front (its ring and focus outline show), and its profile opens
Hover, click or Enter on "+N"A list of everyone not shown

Accessibility ​

PartAnnounced as
Groupgroup named by label ("7 people")
Each avatarAs Avatar with profile
CounterButton named "{n} more: {names}"

Platform adaptation ​

PlatformImplementationDifferences
Web / desktop (Vue)AvatarGroup.vue—
iOS (SwiftUI)—HStack(spacing: -overlap) of avatars; tap opens a sheet listing everyone.
Android (Compose)—Row with negative spacing; tap opens a bottom sheet listing everyone.

Tokens used ​

TokenUsed for
color whiterings
color surfacecounter background
color primaryavatars

Do / Don't ​

DoDon't
Give the group a label that says who they are ("People who can sign off")Rely on "{n} people" where the context isn't clear
Keep max small (3–5)Show twenty overlapping avatars

Released under the PolyForm Noncommercial License 1.0.0.