UNPKG

react-latex-editor

Version:

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

39 lines 1.54 kB
import { default as React } from 'react'; import { MathfieldElement } from '../types/mathlive'; declare global { namespace JSX { interface IntrinsicElements { "math-field": React.DetailedHTMLProps<React.HTMLAttributes<MathfieldElement>, MathfieldElement> & { ref?: React.Ref<MathfieldElement>; value?: string; onInput?: (event: any) => void; "virtual-keyboard-mode"?: string; "math-mode"?: string; "smart-mode"?: string; "smart-fence"?: string; "smart-superscript"?: string; "smart-subscript"?: string; "smart-operator"?: string; "smart-fraction"?: string; "smart-sqrt"?: string; "smart-bracket"?: string; "smart-paren"?: string; "smart-quote"?: string; "smart-space"?: string; "smart-command"?: string; "menu-items"?: string; "menu-toggle"?: string; "menu-toggle-visible"?: string; [key: string]: any; }; } } } interface MathEquationDialogProps { onClose: () => void; onInsert: (latex: string) => void; initialValue?: string; } declare const MathEquationDialog: React.ForwardRefExoticComponent<MathEquationDialogProps & React.RefAttributes<HTMLDivElement>>; export default MathEquationDialog; //# sourceMappingURL=MathEquationDialog.d.ts.map