Component packs › Presence › Avatar Stack

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.

Avatar Stack props

PropTypeDefaultDescription
peopleZgPerson[]the demo roomYour people. Default: the demo room.
maxnumber5Faces shown before "+N". Default 5.
simulatebooleantrue when no people are givenFollow the page's demo room (people join, leave, go idle). Default true when no people are given.
labelstring
darkboolean

Methods on the ref

Use it in React

import AvatarStack from './AvatarStack';

<AvatarStack />

The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.

More in Presence

Good for: Collaboration and calls.