react-email-builder
Version:
A simple React drag and drop email builder.
23 lines (22 loc) • 685 B
TypeScript
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;