Presence stack
Who else is here: faces in their cursor colour, idle people faded, a list with where each person is, and Follow to see what someone sees until you stop.
Edited 2 minutes ago
When to use
- Any document, board or record more than one person edits.
- The header of a shared workspace.
When not to use
- A team list; use the avatar group.
Installation
terminal
pnpm dlx shadcn@latest add @caliper/presence-stack
Adds its 5 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.
API reference
PresenceStack
6 props
PropTypeDefaultDescription
people *readonly Collaborator[]—
maxnumber4
followingstring | null—Id of the person being followed.
onFollow((id: string | null) => void)—
labelstring"People here"
classNamestring—
Keyboard
- Keyboard and focus come from Radix popover: arrow keys move through items, Enter and Space select, and Escape closes and returns focus.
Accessibility
It exposes status semantics, with aria-label, aria-labelledby, aria-pressed and aria-hidden kept in step with state. Changes that matter are announced through a live region.
Notes for AI
Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.
/docs/components/presence-stack.mdThe index of every part is at /llms.txt.
More in Sharing
Share panelA panel to invite people, set access and copy a link.Share sheetA bottom sheet of ways to share an item.Live cursorsOther people’s pointers and selections over shared content, named and coloured to match the presence stack, with idle cursors fading and a plain sentence for screen readers about who is doing what.