Skip to main content

Module: @lexical/react/LexicalCollaborationContext

Type Aliases

CollaborationContextType

Ƭ CollaborationContextType: Object

Type declaration

NameType
clientIDnumber
colorstring
isCollabActiveboolean
namestring
yjsDocMapMap<string, Doc>

Defined in

packages/lexical-react/src/LexicalCollaborationContext.ts:13

Variables

CollaborationContext

Const CollaborationContext: Context<CollaborationContextType>

Defined in

packages/lexical-react/src/LexicalCollaborationContext.ts:41

Functions

useCollaborationContext

useCollaborationContext(username?, color?): CollaborationContextType

Parameters

NameType
username?string
color?string

Returns

CollaborationContextType

Defined in

packages/lexical-react/src/LexicalCollaborationContext.ts:49