@blocknote/react
Version:
A "Notion-style" block-based extensible text editor built on top of Prosemirror and Tiptap.
17 lines (12 loc) • 542 B
text/typescript
import type { FC } from "react";
import type {
CoreMarkViewSpec,
CoreMarkViewUserOptions,
} from "./CoreMarkViewOptions.js";
// export type ReactMarkViewComponent = ComponentType<Record<string, never>>;
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>;