Function: SelectionHighlight()
@roomful/cursors / SelectionHighlight
Function: SelectionHighlight()
Section titled “Function: SelectionHighlight()”SelectionHighlight<
TPresence>(props):null
Defined in: selection-highlight.ts:48
Renders a live text selection highlight for a peer.
Type Parameters
Section titled “Type Parameters”TPresence
Section titled “TPresence”TPresence extends PresenceData = PresenceData
The peer presence shape.
Parameters
Section titled “Parameters”SelectionHighlightProps<TPresence>
The peer and selection to highlight.
Returns
Section titled “Returns”null
null; the component renders through DOM side effects.