Component packs › Presence › Avatar Stack
Newcomers pop in at the front and the rest slide over, leavers shrink out, idle people fade, and hover fans the stack out to read every name.
Avatar Stack is an avatar group from Presence, a component pack with 6 collaboration components: Real-time collaboration UI that looks live: one shared room drives every cursor, face and highlight. Price: $2 for the whole pack.
Built with: live room, spring re-flow, fan out on hover.
Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). No npm packages needed. Keyboard accessible, with a reduced-motion version, in dark and light.
| Prop | Type | Default | Description |
|---|---|---|---|
people | ZgPerson[] | the demo room | Your people. Default: the demo room. |
max | number | 5 | Faces shown before "+N". Default 5. |
simulate | boolean | true when no people are given | Follow the page's demo room (people join, leave, go idle). Default true when no people are given. |
label | string | ||
dark | boolean |
setPeople(people: ZgPerson[]): voiddestroy(): voidimport AvatarStack from './AvatarStack';
<AvatarStack />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Collaboration and calls.