Calm motion: animations on this site only fade, with no movement
AvatarGroup
Fused row of avatars with a +N plate
A row of avatars for the people on a task, a document, or a call. The avatars fuse into one plate. They do not overlap, because the group is one shape (see fuse when grouped).
Basic
itemsis a list of{ src, name, alt }. Each item is oneBlessAvatar, with the same image and initials rules.max(default 5) sets how many avatars show. The rest go into one "+N" plate. The tooltip of that plate names the hidden people. A screen reader reads the plate as "2 more". Change the words withlabels.moreor a label pack.sizeandcolorapply to every avatar. The "+N" plate is alwaystext, so it does not look like a person.- The root is
role="group". Give it anaria-labelthat says what the people have in common, for example "Assignees".
Usage
ts
import { BlessAvatarGroup } from "blessing-ui";API
Props
| Name | Type | Default | Description |
|---|---|---|---|
items* | BlessAvatarGroupItem[] | — | |
max | number | 5 | how many avatars show; the rest become one "+N" plate |
size | "md" | "sm" | "xs" | "lg" | "xl" | "md" | |
color | "text" | "accent" | "surface" | "surface" | |
labels | Partial<{ more: (n: number) => string; }> | — |