UNPKG

react-email-builder

Version:
23 lines (22 loc) 685 B
import React from 'react'; import type { TextEditorState } from '../../types'; import type { Props as ToolbarPluginProps } from '../../lexical/plugins/ToolbarPlugin'; export interface Props extends ToolbarPluginProps { /** * The placeholder text. */ placeholder?: string; /** * The editor style. */ style?: React.CSSProperties; /** * The text editor state. */ state: TextEditorState; /** * A function to update text editor state. */ setState: React.Dispatch<React.SetStateAction<TextEditorState>>; } export declare function TextEditor({ placeholder, style, state, setState, ...props }: Props): React.JSX.Element;