Skip to main content

AvatarStack

Overlapping avatars with a +n overflow chip.

Signature
Density
Viewport
Theme and light/dark are set in the top bar
Live demo
Open ↗

When 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​

PropTypeRequiredDescription
peopleAvatarStackPerson[]YesIn the order that matters — overflow always trims from the end.
maxnumber—How many to show before the +n chip. Default 4.
size"xs" | "sm" | "md"—
hueAvatarStackHue | "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".
labelstring—Overrides the generated screen-reader label (defaults to the full name list).
classNamestring—