Cursor
Show collaborator presence in a shared workspace.
MorganSamAlexPriyaNoor
Usage · TSX
<div class="catalog-row">
<Cursor name="Morgan" />
<Cursor name="Sam" color="#6d28d9" />
<Cursor name="Alex" color="#047857" />
<Cursor name="Priya" color="#fbbf24" />
<Cursor name="Noor" color="#be185d" />
</div>MorganSamReviewing the totals
Usage · TSX
<div class="catalog-row">
<Cursor color="#7c3aed" aria-hidden="true">
<CursorPointer size={24} />
</Cursor>
<Cursor color="#047857">
<CursorPointer />
<CursorBody>
<CursorName>Morgan</CursorName>
</CursorBody>
</Cursor>
<Cursor color="#0e7490">
<CursorPointer />
<CursorBody>
<CursorName>Sam</CursorName>
<CursorMessage>Reviewing the totals</CursorMessage>
</CursorBody>
</Cursor>
</div>| Item | Forecast | Actual |
|---|---|---|
| Research | $2,100 | $1,950 |
| Design | $4,600 | $4,300 |
| Launch | $3,750 | $3,500 |
Usage · TSX
<div class="rv-demo-cursor-canvas rv-demo-cursor-worksheet">
<table aria-label="Launch budget">
<thead>
<tr>
<th scope="col">Item</th>
<th scope="col">Forecast</th>
<th scope="col">Actual</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">Research</th>
<td>$2,100</td>
<td>$1,950</td>
</tr>
<tr>
<th scope="row">Design</th>
<td>$4,600</td>
<td>$4,300</td>
</tr>
<tr>
<th scope="row">Launch</th>
<td>$3,750</td>
<td>$3,500</td>
</tr>
</tbody>
</table>
<Cursor name="Sam" color="#6d28d9" className="rv-demo-cursor-sam" />
<Cursor name="Alex" color="#047857" className="rv-demo-cursor-alex" />
</div>Priya
Usage · TSX
<div class="rv-demo-cursor-canvas rv-demo-cursor-live">
<Button
className="rv-demo-cursor-board-action"
onClick={() => setBoardEdits((count) => count + 1)}
>
Mark reviewed
</Button>
<Cursor
position={positions[frame]}
name="Priya"
color="#0e7490"
animate
/>
</div>
<div class="catalog-row">
<Button
onClick={() =>
setFrame((previous) => (previous + 1) % positions.length)
}
>
Move collaborator
</Button>
<output role="status">
{boardEdits > 0 ? `Reviews marked: ${boardEdits}` : ''}
</output>
</div>API reference
Explore the complete contracts and inspect complex types.