UNPKG

@uiw/react-md-editor

Version:

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

15 lines (14 loc) 552 B
import React from 'react'; import { IProps } from '../../Editor'; import { ICommand } from '../../commands'; import './index.less'; export interface IToolbarProps extends IProps { overflow?: boolean; height?: React.CSSProperties['height']; toolbarBottom?: boolean; onCommand?: (command: ICommand<string>, groupName?: string) => void; commands?: ICommand<string>[]; isChild?: boolean; } export declare function ToolbarItems(props: IToolbarProps): JSX.Element; export default function Toolbar(props?: IToolbarProps): JSX.Element;