Avatar Group
Stacked avatars with an overflow count.
MarkdownExamples
Capped
max includes the “+N” chip: with max 4, you get three avatars and “+3”.
AL
GH
AT +3
API
| Prop | Type | Default |
|---|---|---|
itemsPeople to show, in order. | AvatarItem[] | [] |
maxMost circles to show, counting the "+N" chip: | number | — |
sizeSize passed to every avatar. | "small" | "medium" | "large" | "medium" |
overflowLabelSpoken name of the "+N" chip, e.g. | ((count: number) => string) | — |
Types
export interface AvatarItem {
name: string;
src?: string;
id?: string | number;
}Copy codeStyling
- Parts
avatar-groupavataravatar-image- States
data-avatar-sizedata-avatar-overflow
Accessibility
- Screen readers hear the “+N” chip as “3 more”. Use
overflow-labelto say more, e.g. “3 more people”.