UNPKG

goobs-frontend

Version:

A comprehensive React-based libary for building modern web applications

28 lines 1.19 kB
import { default as React } from 'react'; import { EditorMode } from './Toolbars/Complex'; import { ComplexTextEditorStyles } from '../../theme/'; export interface ComplexTextEditorProps { /** The current value of the editor (for controlled usage). */ value?: string; /** The type of editor to render. */ editorType?: 'simple' | 'markdown' | 'rich' | 'complex'; /** The initial value of the editor (for uncontrolled usage). */ initialValue?: string; /** The initial mode for complex editors. */ initialMode?: EditorMode; /** The label for the editor. */ label?: string; /** The minimum number of rows for the editor. */ minRows?: number; /** Callback fired when the editor value changes. */ onChange?: (value: string) => void; /** Helper text to display below the editor. */ helperText?: React.ReactNode; /** Comprehensive styling options including theme, custom colors, and layout properties. */ styles?: ComplexTextEditorStyles; autoSave?: boolean; autoSaveKey?: string; } declare const ComplexTextEditor: React.FC<ComplexTextEditorProps>; export default ComplexTextEditor; //# sourceMappingURL=index.d.ts.map