UNPKG

@uiw/react-markdown-editor

Version:

A markdown editor with preview, implemented with React.js and TypeScript.

13 lines (12 loc) 475 B
import { ICommand, defaultCommands } from '../../commands'; import { IMarkdownEditor, ToolBarProps } from '../../'; import './index.less'; export interface IToolBarProps<T = keyof typeof defaultCommands | ICommand> extends ToolBarProps { className?: string; editorProps: IMarkdownEditor; mode?: boolean; prefixCls?: string; toolbars?: T[]; onClick?: (type: string) => void; } export default function ToolBar(props: IToolBarProps): JSX.Element | null;