UNPKG

@blocknote/react

Version:

A "Notion-style" block-based extensible text editor built on top of Prosemirror and Tiptap.

10 lines (9 loc) 371 B
/// <reference types="react" /> import { BlockNoteEditor } from "@blocknote/core"; export declare function renderToDOMSpec(fc: (refCB: (ref: HTMLElement | null) => void) => React.ReactNode, editor: BlockNoteEditor<any, any, any> | undefined): { dom: HTMLSpanElement; contentDOM?: undefined; } | { dom: HTMLElement; contentDOM: HTMLElement | undefined; };