@blocknote/react
Version:
A "Notion-style" block-based extensible text editor built on top of Prosemirror and Tiptap.
13 lines (12 loc) • 471 B
TypeScript
import { ReactNode } from "react";
/**
* Shown in place of the preview when there's nothing to render: the "add
* source" state when the source is empty, or - with `error` - the compact
* error state when the source failed to render (the full error message is
* shown in the source popup while editing).
*/
export declare const PreviewPlaceholder: (props: {
text: string;
icon?: ReactNode;
error?: boolean;
}) => import("react/jsx-runtime").JSX.Element;