UNPKG

goobs-frontend

Version:

A comprehensive React-based libary for building modern web applications

32 lines 1.48 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; /** Stable test selector — emitted as `data-field-name` on the wrapper. */ dataFieldName?: string; /** HTML-style field name. Alias for dataFieldName so the test contract can target the field by either; data-field-name is emitted from dataFieldName ?? name. */ name?: string; /** 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