UNPKG

@uiw/react-md-editor

Version:

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

15 lines (14 loc) 507 B
/// <reference types="react" /> import { IProps } from '../../utils'; import { ICommand, ICommandChildHandleParam } from '../../commands'; import './index.less'; export interface IToolbarProps extends IProps { onCommand?: (command: ICommand<string>, groupName?: string) => void; commands?: ICommand<string>[]; groupName?: string; commandHelp?: ICommandChildHandleParam; active?: { [key: string]: any; }; } export default function Toolbar(props?: IToolbarProps): JSX.Element;