Skip to content
Sign upGet access
MicrointeractionsPresence fanMenu

Presence fan (Pro)

ProIncluded in $99

A presence stack that fans open like a hand of cards.

ProHover the stack and the faces deal out into an arc on springs, each with its cursor colour and name tag; hover a face and it lifts.

Closed, it is the usual overlapping row of faces and a +3. Hover or focus it and the faces deal out on springs into an arc above, centre out, each taking a ring in its live cursor colour and a name tag like the cursors on a shared canvas, and the +3 deals out the people it was hiding. Hover a face and it lifts and its tag grows to the full name. It folds back outside in, a little quicker. Who is here is good to know when people and agents share a document.

Installation

$ pnpm dlx shadcn@latest add @chatcn-pro/presence-fan

Needs chatcn Pro

This command works with a Pro license, along with every Pro component.

Or start free: sign up and get three Pro components on us, with a new one every month.

Usage

tsx
import { PresenceFan } from "@/components/ui/chatcn/pro/presence-fan"

<PresenceFan people={viewers} action={<ShareButton />} />

Leave room above the stack for the fan, about 240 px.

Props

PropTypeNotes
people{ id, name, initials, color }[]color is their cursor colour
shownnumberFaces before the +N; default 5
actionReactNodeAfter the count
open / onOpenChangebooleanOptional control
highlightedstring | nullLift a face from outside

Accessibility

  • Everyone viewing is also listed for screen readers; the fan itself is decoration.

Motion

  • Opens with a 35 ms stagger on a spring with a small overshoot, closes outside in at 22 ms. Reduced motion: faces fade in place.