Skip to main content

Module: @lexical/react/LexicalComposerContext

Type Aliases

LexicalComposerContextType

Ƭ LexicalComposerContextType: Object

Type declaration

NameType
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

NameType
parentundefined | null | LexicalComposerContextWithEditor
themeundefined | null | EditorThemeClasses

Returns

LexicalComposerContextType

Defined in

packages/lexical-react/src/LexicalComposerContext.ts:29


useLexicalComposerContext

useLexicalComposerContext(): LexicalComposerContextWithEditor

Returns

LexicalComposerContextWithEditor

Defined in

packages/lexical-react/src/LexicalComposerContext.ts:52