Skip to main content

@lexical/react/TreeViewExtension

Type Aliases

TreeViewConfig

TreeViewConfig = Omit<Parameters<typeof TreeView>[0], "editor">

Defined in: packages/lexical-react/src/TreeViewExtension.tsx:21

Configuration for TreeViewExtensionComponent: the props of TreeView except editor (which is taken from the composer context), i.e. the set of CSS class names used by the debug view.

Variables

TreeViewExtension

const TreeViewExtension: LexicalExtension<TreeViewConfig, "@lexical/react/TreeView", { Component: (props) => Element; }, unknown>

Defined in: packages/lexical-react/src/TreeViewExtension.tsx:55

Provides a configured TreeView debugging tool (React dependent) as an output component with configurable class names.

Functions

TreeViewExtensionComponent()

TreeViewExtensionComponent(props): Element

Defined in: packages/lexical-react/src/TreeViewExtension.tsx:29

Renders the TreeView debugging panel for the current editor, merging the TreeViewExtension configuration with any props you pass. Use it inside an extension-based editor to inspect the editor state tree.

Parameters

props

Partial<TreeViewConfig>

Returns

Element

The TreeView element.