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

Interface: UseCursorsResult\<TCursor\>

@roomful/react


@roomful/react / UseCursorsResult

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

Describes the return value of useCursors.

TCursor extends CursorData = CursorData

The custom cursor payload shape.

cursors: CursorPosition<TCursor>[]

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

Exposes the latest cursor positions.


ref: RefCallback<HTMLElement>

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

Callback ref that mounts the cursor engine on an element.

mount(element): void

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

Mounts cursor tracking on an element.

HTMLElement

The element to observe.

void

Nothing.


unmount(): void

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

Unmounts cursor tracking.

void

Nothing.