tiptop-editor
Version:
Notion-like editor built with Tiptap v3 and HeroUI
18 lines (17 loc) • 562 B
TypeScript
import { Editor } from '@tiptap/core';
import { SuggestionKeyDownProps, SuggestionProps } from '@tiptap/suggestion';
import { EmojiItem } from '@tiptap/extension-emoji';
declare const _default: {
allowSpaces: boolean;
items: ({ editor, query }: {
editor: Editor;
query: string;
}) => EmojiItem[];
render: () => {
onStart: (props: SuggestionProps) => void;
onUpdate(props: SuggestionProps): void;
onKeyDown(props: SuggestionKeyDownProps): boolean;
onExit(): void;
};
};
export default _default;