Component packs › Presence › Viewer Count

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.

Viewer Count props

PropTypeDefaultDescription
valuenumberStarting count when not following the demo room.
simulatebooleantrueFollow the page's demo room. Default true. Set false and call setCount().
labelstring
darkboolean

Methods on the ref

Use it in React

import ViewerCount from './ViewerCount';

<ViewerCount />

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

More in Presence

Good for: Collaboration and calls.