UNPKG

@wix/design-system

Version:

@wix/design-system

47 lines (44 loc) 1.7 kB
### dataHook - type: string - description: data-hook for testing ### className - type: string - description: Specifies a CSS class name to be appended to the component’s root element. - internal ### initialValue - type: string - description: Sets the initial value to be displayed in the editor. - default: '<p/>' ### placeholder - type: string - description: Sets a placeholder message to display. ### disabled - type: boolean - description: Whether this specific button is disabled (toolbar-level `disabled` also applies) - default: false ### status - type: "loading" | "error" | "warning" - description: Specifies the status of a field. ### statusMessage - type: ReactNode - description: Defines the message to display on status icon hover. If not given or empty there will be no tooltip. ### onChange - type: (htmlText: string, params: { plainText: string; }) => void - description: Defines a standard callback function for changes: `onChange(htmlText, { plainText })` ### minHeight - type: string - description: Defines a minimum height for the editor (it grows by default) ### maxHeight - type: string - description: Defines a maximum height for the editor (it grows by default) ### spellCheck - type: boolean - description: Enables browsers spell checking. Do not affect IE. In Safari, autocorrects by default. ### customButtons - type: { tooltipText?: string | undefined; icon?: ReactNode; onClick?: (() => void) | undefined; disabled?: boolean | undefined; active?: boolean | undefined; dataHook?: string | undefined; }[] - description: An array of custom toolbar button configs to append after the built-in buttons. ### texts - type: texts - description: Defines text styles to be shown.