Skip to content
Roomful is in public beta — install with the @beta tag. Share feedback →

Function: useCursors()

@roomful/react


@roomful/react / useCursors

useCursors<TCursor, TPresence>(options?): UseCursorsResult<TCursor>

Defined in: react/src/index.ts:388

Subscribes to cursor snapshots and returns mounting helpers.

TCursor extends CursorData = CursorData

The custom cursor payload shape.

TPresence extends PresenceData = PresenceData

The room presence shape.

CursorOptions

Optional cursor tracking configuration.

UseCursorsResult<TCursor>

The cursor snapshot and mounting helpers.