AvatarStack
Overlapping avatars with a +n overflow chip.
Signature
Density
Viewport
Theme and light/dark are set in the top barWhen to use
Overlapping avatars with a +n overflow chip.
Accessibility
Rendered as a real <table> with header scopes; sortable columns expose aria-sort. Row selection and actions are keyboard reachable.
Install and import
npx shadcn@latest add @prism/avatar-stack
import { AvatarStack } from '@/components/prism/AvatarStack';
In a no-build prototype, read it from the bundle instead: const { AvatarStack } = window.PrismDesignSystem_39d121;
Props
| Prop | Type | Required | Description |
|---|---|---|---|
people | AvatarStackPerson[] | Yes | In the order that matters — overflow always trims from the end. |
max | number | — | How many to show before the +n chip. Default 4. |
size | "xs" | "sm" | "md" | — | |
hue | AvatarStackHue | "auto" | — | Initials tint for every face: a categorical hue, or "auto" for a stable hue per person (the same one Avatar hue="auto" gives them). |
tone | "accent" | "neutral" | "inverse" | — | Avatar's tone for the initials faces. Default "accent". |
label | string | — | Overrides the generated screen-reader label (defaults to the full name list). |
className | string | — |