UNPKG

@rtdui/editor

Version:

React rich text editor based on tiptap

19 lines (18 loc) 660 B
import type { ControlBaseProps } from "./ControlBase"; import type { ControlLabels } from "./constrolLabels"; interface CreateControlOptions { label: keyof ControlLabels; icon: React.FC<{ size: number | string; }>; isActive?: { name: string; attributes?: Record<string, any> | string; }; operation: { name: string; attributes?: Record<string, any> | string; }; } export default function createTiptapControl({ label, isActive, operation, icon, }: CreateControlOptions): import("react").ForwardRefExoticComponent<ControlBaseProps & import("react").RefAttributes<HTMLButtonElement>>; export {};