LogoRobo.js
Packages@robojs/sync

SyncCursorsProps<ClientData>

Interface: SyncCursorsProps<ClientData>

Props for SyncCursors component.

Type Parameters

Type ParameterDefault type
ClientDataunknown

Properties

PropertyTypeDescription
colorFn?(clientId: string) => stringColor function to generate cursor color from client ID
defaultCursorStyle?CSSPropertiesDefault style for cursor wrapper
labelKey?keyof ClientData | (client) => stringKey to use for label from client data, or function to extract label
renderCursor?(cursor: RemoteCursor<ClientData>) => ReactNodeCustom cursor renderer
roomKey(null | string)[]Room key for cursor synchronization
showLabels?booleanShow user labels next to cursors (default: true)
throttle?numberMilliseconds between cursor updates (default: 16)
zIndex?numberZ-index for cursor container (default: 9999)

On this page