UNPKG

@wix/design-system

Version:

@wix/design-system

44 lines (39 loc) 1.1 kB
import * as React from 'react'; export type RichTextInputAreaStatus = 'error' | 'warning' | 'loading'; export interface RichTextInputAreaProps { dataHook?: string; className?: string; initialValue?: string; placeholder?: string; disabled?: boolean; status?: RichTextInputAreaStatus; statusMessage?: React.ReactNode; onChange?: (htmlText: string, params: {plainText: string}) => void; minHeight?: string; maxHeight?: string; spellCheck?: boolean; texts?: texts; } export type texts = { toolbarButtons?: { boldButtonLabel?: string; italicButtonLabel?: string; underlineButtonLabel?: string; linkButtonLabel?: string; bulletedListButtonLabel?: string; numberedListButtonLabel?: string; }; insertionForm?: { confirmButtonLabel?: string; cancelButtonLabel?: string; link?: { textInputPlaceholder?: string; urlInputPlaceholder?: string; }; }; }; export default class RichTextInputArea extends React.PureComponent<RichTextInputAreaProps> { setValue: (value: string) => void; focus: () => void; blur: () => void; }