UNPKG

tiptop-editor

Version:

Notion-like editor built with Tiptap v3 and HeroUI

30 lines (29 loc) 879 B
import { Editor } from '@tiptap/react'; import { PluginKey } from '@tiptap/pm/state'; import { SuggestionKeyDownProps, SuggestionProps } from '@tiptap/suggestion'; declare const _default: { pluginKey: PluginKey<any>; items: ({ query }: { query: string; }) => { commands: { key: string; title: string; icon: string; description: string; command: ({ editor, range }: { editor: Editor; range: import('@tiptap/core').Range; }) => void; }[]; key: string; title: string; }[]; render: () => { onStart: (props: SuggestionProps) => void; onUpdate(props: SuggestionProps): void; onKeyDown(props: SuggestionKeyDownProps): boolean | undefined; onExit(): void; }; }; export default _default;