UNPKG

@yoopta/editor

Version:

<h2 align="center">Yoopta-Editor v1 🎉</h2> <p align="center">Yoopta-Editor - is an open source notion-like editor 💥</p> <div align="center"> <img width="574" alt="Screen Shot 2023-01-25 at 16 04 29" src="https://user-images.githubusercontent.com/2909311

12 lines • 721 B
import type { Plugin, PluginDOMEvents } from './types'; import type { SlateElement } from '../editor/types'; import type { YooptaMark } from '../marks'; type Props<TElementMap extends Record<string, SlateElement>, TOptions> = Plugin<TElementMap, TOptions> & { id: string; marks?: YooptaMark<any>[]; placeholder?: string; events?: PluginDOMEvents; }; declare const SlateEditorComponent: <TElementMap extends Record<string, SlateElement<string, any>>, TOptions>({ id, elements, marks, events, extensions: withExtensions, placeholder, }: Props<TElementMap, TOptions>) => import("react/jsx-runtime").JSX.Element; export { SlateEditorComponent }; //# sourceMappingURL=slate-editor-component.d.ts.map