import { DraftBlockType, DraftInlineStyleType } from 'draft-js'; import { FeedbackTextProps } from '../../../../tedi/components/form/feedback-text/feedback-text'; import { FormLabelProps } from '../../../../tedi/components/form/form-label/form-label'; export interface TextEditorProps extends FormLabelProps { /** * ID attribute. */ id: string; name?: string; /** * Default value of input. */ defaultValue?: string; /** * onChange callback handler. */ onChange?: (value: string) => void; /** * Input field placeholder. */ placeholder?: string; /** * Additional classes. */ className?: string; /** * Select which inlineStyleControls should be visible. * @default ['BOLD', 'ITALIC'] */ inlineStyleControls?: DraftInlineStyleType[]; /** * Select which inlineStyleControls should be visible. * @default unordered-list-item */ blockStyleControls?: DraftBlockType[]; /** * Textfield helper. */ helper?: FeedbackTextProps; /** * onFocus callback handler. */ onFocus?: () => void; /** * onBlur callback handler. */ onBlur?: () => void; /** * If text-editor is invalid. */ invalid?: boolean; } export declare const TextEditor: (props: TextEditorProps) => JSX.Element; export default TextEditor;