Component packs › Presence › 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.
| Prop | Type | Default | Description |
|---|---|---|---|
text | string | ||
simulate | boolean | true | Follow the page's demo room. Default true. Set false and call select(). |
label | string | ||
dark | boolean |
select(p: ZgPerson, at: number, len: number): void: Highlight `len` words from word `at` for this person.clear(id: string): voiddestroy(): voidimport SharedSelection from './SharedSelection';
<SharedSelection />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Collaboration and calls.