UNPKG

@uiw/react-markdown-editor

Version:

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

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