UNPKG

pm-react-text-editor

Version:

A customizable and lightweight rich-text editor for React, built with hooks and modern styling. Supports common formatting tools like bold, italic, lists, headings, links, and more.

10 lines (9 loc) 325 B
import { ReactNode } from 'react'; interface ToolbarButtonProps { icon: ReactNode; tooltip: string; onClick?: () => void; active?: boolean | false; } declare function ToolbarButton({ icon, tooltip, onClick, active }: ToolbarButtonProps): import("react/jsx-runtime").JSX.Element; export default ToolbarButton;