AvatarGroup

Overlapping stack of avatars with a max cap and an i18n-labelled +N overflow chip

Category: display · WCAG 2.2-AA · avatar, group, stack, overflow, display

States

Props

PropTypeDefaultDescription
maxnumberCap the number of visible avatars
totalnumberOverride the total count used for the +N chip
spacing'sm' | 'md' | 'lg'mdSpacing between items.
isGridbooleanfalseWhen true, lays the avatars out in a grid instead of an overlapping stack.
labelsAvatarGroupLabelsOverrides for the component’s user-visible strings (i18n).

Design tokens

When to use

When not to use

How to build an accessible AvatarGroup in React →

Examples

Basic

<AvatarGroup><Avatar fallback="A" /><Avatar fallback="B" /><Avatar fallback="C" /></AvatarGroup>

With max

<AvatarGroup max={3}>{users.map((u) => <Avatar key={u.id} src={u.src} alt={u.name} />)}</AvatarGroup>

Grid

<AvatarGroup isGrid max={8}>{avatars}</AvatarGroup>

Related components

← Back to docs