UNPKG

goobs-frontend

Version:

A comprehensive React-based libary for building modern web applications

33 lines 1.34 kB
import { default as React } from 'react'; import { ComplexTextEditorStyles } from '../../theme'; export type TextType = 'paragraph' | 'h1' | 'h2' | 'h3'; export type AlignmentFormat = 'left' | 'center' | 'right' | 'justify'; interface ToolbarMarkdownProps { editor?: any; handleBoldClick?: () => void; handleItalicClick?: () => void; handleUnderlineClick?: () => void; handleStrikethroughClick?: () => void; handleCodeClick?: () => void; handleLinkClick?: () => void; handleUndo?: () => void; handleRedo?: () => void; handleAlign?: (align: string) => void; handleTextType?: (type: string) => void; handleBulletedList?: () => void; handleNumberedList?: () => void; markdownMode: boolean; setMarkdown: (value: string) => void; toolbarType?: 'markdown' | 'richtext' | 'rich'; styles?: ComplexTextEditorStyles; /** * Caller-override CSS-variable object (--ct-toolbar-bg / --ct-toolbar-padding * / --ct-toolbar-gap) applied inline on the toolbar wrapper so * toolbarBackground / toolbarPadding / toolbarGap are honored as in the old * getComplexTextEditorTheme toolbar branch. */ wrapperStyle?: React.CSSProperties; } declare const ToolbarMarkdown: React.FC<ToolbarMarkdownProps>; export default ToolbarMarkdown; //# sourceMappingURL=index.d.ts.map