UNPKG

react-latex-editor

Version:

A powerful React rich text editor with mathematical equation support, built on TipTap with MathLive integration

30 lines 762 B
import { ReactNode, MouseEventHandler } from 'react'; interface ToolbarButtonProps { /** * Click event handler */ onClick?: MouseEventHandler<HTMLButtonElement>; /** * Whether the button is active */ isActive?: boolean; /** * Button title (used as tooltip) */ title: string; /** * Button content */ children: ReactNode; /** * Keyboard shortcut for the button */ shortcut?: string; /** * Whether the button is disabled */ disabled?: boolean; } declare const ToolbarButton: import('react').NamedExoticComponent<ToolbarButtonProps & import('react').RefAttributes<HTMLButtonElement>>; export default ToolbarButton; //# sourceMappingURL=ToolbarButton.d.ts.map