AppAvatarGroup
A row of AppAvatars that overlap, then a "+N" tile for the rest. It is a labelled list, so screen readers hear how many there are and each name; the tile reads "3 more: Margaret Hamilton, Katherine Johnson, Alan Turing" and shows the names as a tooltip. The stack overlaps with logical margins, so it runs the other way in RTL. Each avatar sits on a 2px disc of --vt-avatar-cut (default --color-surface): set it to the colour behind the group. Hovering a face reveals who it is: by default a ring of ink closes around the face and a name pill drips out of it through the AppBlob goo, then slides from face to face as the pointer moves along the row (the name cross-fades through AppSwap; the +N tile names who it hides). The group is one tab stop: arrows walk the faces, Escape hides the pill. reveal tooltip uses AppTooltip instead; none turns it off.
Install: pnpm add-component AppAvatarGroup
Hover to reveal
Move along the row: the drop follows the pointer from face to face, then the +N tile names the rest. Tab to the group and use the arrows to do the same from the keyboard. Pine bounces as the pill appears.
Basic usage
Seven people, four shown. The second group shows three.
A server total
Only the first three watchers were fetched; total makes the tile count all 128.
Square
API
items(AvatarGroupItem[]): { name, src?, alt?, status?, statusLabel?, hue?, seed?, key? }: the AppAvatar props for each person.max(number): How many avatars to show before the "+N" tile.total(number): The real count when items holds only the first page (a server total). The tile counts the rest.label(string): Names the list ("Project members"), so screen readers say what the people are.size('xs' | 'sm' | 'md' | 'lg' | 'xl'): Size of every avatar and the tile.shape('circle' | 'square'): Shape of every avatar and the tile.reveal('blob' | 'tooltip' | 'none'): What hovering a face shows: the blob ring and name pill, an AppTooltip, or nothing. With blob the group takes focus and arrows walk it.revealPlacement('bottom' | 'top'): Which side of the row the name pill drips to.