Skip to content

Interface: UseCursorsResult\<TCursor\>

@roomful/solid


@roomful/solid / UseCursorsResult

Defined in: solid/src/index.ts:157

Describes the return value of useCursors.

TCursor extends CursorData = CursorData

The custom cursor payload shape.

cursors: Accessor<CursorPosition<TCursor>[]>

Defined in: solid/src/index.ts:169

Exposes the latest cursor positions.

mount(element): void

Defined in: solid/src/index.ts:177

Mounts cursor tracking on an element.

HTMLElement

The element to observe.

void

Nothing.


ref(element): void

Defined in: solid/src/index.ts:164

Callback ref that mounts the cursor engine on an element.

The element to observe, or null to unmount.

HTMLElement | null

void

Nothing.


unmount(): void

Defined in: solid/src/index.ts:184

Unmounts cursor tracking.

void

Nothing.