Skip to main content

Module: @lexical/react/LexicalContentEditable

Type Aliases

ContentEditableProps

Ƭ ContentEditableProps: Omit<ElementProps, "editor"> & { aria-placeholder?: void ; placeholder?: null } | { aria-placeholder: string ; placeholder: (isEditable: boolean) => null | JSX.Element | JSX.Element }

Defined in

packages/lexical-react/src/LexicalContentEditable.tsx:18


Props

Ƭ Props: ContentEditableProps

Deprecated

This type has been renamed to ContentEditableProps to provide a clearer and more descriptive name. For backward compatibility, this type is still exported as Props, but it is recommended to migrate to using ContentEditableProps instead.

Note

This alias is maintained for compatibility purposes but may be removed in future versions. Please update your codebase to use ContentEditableProps to ensure long-term maintainability.

Defined in

packages/lexical-react/src/LexicalContentEditable.tsx:39

Functions

ContentEditable

ContentEditable(props): ReactNode

Parameters

NameType
propsContentEditableProps & RefAttributes<HTMLDivElement>

Returns

ReactNode

Defined in

packages/lexical-react/src/LexicalContentEditable.tsx:41