Module: @lexical/react/LexicalComposerContext
Type Aliases
LexicalComposerContextType
Ƭ LexicalComposerContextType: Object
Type declaration
Name | Type |
---|---|
getTheme | () => EditorThemeClasses | null | undefined |
Defined in
packages/lexical-react/src/LexicalComposerContext.ts:14
LexicalComposerContextWithEditor
Ƭ LexicalComposerContextWithEditor: [LexicalEditor
, LexicalComposerContextType
]
Defined in
packages/lexical-react/src/LexicalComposerContext.ts:18
Variables
LexicalComposerContext
• Const
LexicalComposerContext: React.Context
<LexicalComposerContextWithEditor
| null
| undefined
>
Defined in
packages/lexical-react/src/LexicalComposerContext.ts:23
Functions
createLexicalComposerContext
▸ createLexicalComposerContext(parent
, theme
): LexicalComposerContextType
Parameters
Name | Type |
---|---|
parent | undefined | null | LexicalComposerContextWithEditor |
theme | undefined | null | EditorThemeClasses |
Returns
Defined in
packages/lexical-react/src/LexicalComposerContext.ts:29
useLexicalComposerContext
▸ useLexicalComposerContext(): LexicalComposerContextWithEditor
Returns
LexicalComposerContextWithEditor