Module: @lexical/react/LexicalCollaborationContext
Type Aliases
CollaborationContextType
Ƭ CollaborationContextType: Object
Type declaration
Name | Type |
---|---|
clientID | number |
color | string |
isCollabActive | boolean |
name | string |
yjsDocMap | Map <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
Name | Type |
---|---|
username? | string |
color? | string |
Returns
Defined in
packages/lexical-react/src/LexicalCollaborationContext.ts:49