Component packs › Presence › Viewer Count
The count rolls as people arrive and leave, the faces shuffle, and a step chart draws the last minute of the room, sliding left each second.
Viewer Count is a live counter 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: rolling digits, step chart, live room.
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 |
|---|---|---|---|
value | number | Starting count when not following the demo room. | |
simulate | boolean | true | Follow the page's demo room. Default true. Set false and call setCount(). |
label | string | ||
dark | boolean |
setCount(n: number, people?: ZgPerson[]): voiddestroy(): voidimport ViewerCount from './ViewerCount';
<ViewerCount />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Collaboration and calls.