模組:@lexical/react/LexicalComposerContext
類型別名
LexicalComposerContextType
Ƭ LexicalComposerContextType: Object
類型宣告
名稱 | 類型 |
---|---|
getTheme | () => EditorThemeClasses | null | undefined |
定義於
packages/lexical-react/src/LexicalComposerContext.ts:14
LexicalComposerContextWithEditor
Ƭ LexicalComposerContextWithEditor: [LexicalEditor
, LexicalComposerContextType
]
定義於
packages/lexical-react/src/LexicalComposerContext.ts:18
變數
LexicalComposerContext
• Const
LexicalComposerContext: React.Context
<LexicalComposerContextWithEditor
| null
| undefined
>
定義於
packages/lexical-react/src/LexicalComposerContext.ts:23
函式
createLexicalComposerContext
▸ createLexicalComposerContext(parent
, theme
): LexicalComposerContextType
參數
名稱 | 類型 |
---|---|
parent | undefined | null | LexicalComposerContextWithEditor |
theme | undefined | null | EditorThemeClasses |
回傳
定義於
packages/lexical-react/src/LexicalComposerContext.ts:29
useLexicalComposerContext
▸ useLexicalComposerContext(): LexicalComposerContextWithEditor
回傳
LexicalComposerContextWithEditor