@blocknote/react
Version:
A "Notion-style" block-based extensible text editor built on top of Prosemirror and Tiptap.
11 lines (10 loc) • 461 B
TypeScript
import type { FC } from "react";
import type { CoreMarkViewSpec, CoreMarkViewUserOptions } from "./CoreMarkViewOptions.js";
export type ReactMarkViewComponent = FC<{
contentRef: (el: HTMLElement | null) => void;
}> | FC<{
contentRef: (el: HTMLElement | null) => void;
value: string;
}>;
export type ReactMarkViewSpec = CoreMarkViewSpec<ReactMarkViewComponent>;
export type ReactMarkViewUserOptions = CoreMarkViewUserOptions<ReactMarkViewComponent>;