Component packs › Presence › Shared Selection

Shared Selection

Everyone's selected words light up in their colour with a named caret flag; a new selection fades off the old words and the flag glides across.

Shared Selection is a collaborative text 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: word-accurate highlights, gliding flags, your own selection kept.

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.

Shared Selection props

PropTypeDefaultDescription
textstring
simulatebooleantrueFollow the page's demo room. Default true. Set false and call select().
labelstring
darkboolean

Methods on the ref

Use it in React

import SharedSelection from './SharedSelection';

<SharedSelection />

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

More in Presence

Good for: Collaboration and calls.