Skip to main content

Interface: ReactConfig

Properties

EditorChildrenComponent

EditorChildrenComponent: EditorChildrenComponentType

The component that renders the children of the editor context, by default it is DefaultEditorChildrenComponent which takes the given props and renders them in this order:

  • contentEditable
  • children

Defined in

types.ts:66


ErrorBoundary

ErrorBoundary: ErrorBoundaryType

The ErrorBoundary used for rendering decorators in the editor. By default it is ErrorBoundary from @lexical/react/ErrorBoundary.

Defined in

types.ts:57


contentEditable

contentEditable: null | Element

The default root element of the editor as JSX. Uses <ContentEditable /> from @lexical/react/ContentEditable by default, but may be null or another component.

This component is responsible for calling editor.setRootElement(elem).

Defined in

types.ts:52


decorators

decorators: readonly DecoratorComponentType[]

An array of JSX or components that return JSX that should be rendered as children of Component. These will be merged by array concatenation.

Defined in

types.ts:72