@blocknote/react
Version:
A "Notion-style" block-based extensible text editor built on top of Prosemirror and Tiptap.
70 lines (69 loc) • 2.38 kB
TypeScript
import { FileBlockConfig, imageBlockConfig } from "@blocknote/core";
import { ReactCustomBlockRenderProps } from "../../schema/ReactBlockSpec.js";
export declare const ImagePreview: (props: Omit<ReactCustomBlockRenderProps<FileBlockConfig, any, any>, "contentRef">) => import("react/jsx-runtime").JSX.Element;
export declare const ImageToExternalHTML: (props: Omit<ReactCustomBlockRenderProps<typeof imageBlockConfig, any, any>, "contentRef">) => import("react/jsx-runtime").JSX.Element;
export declare const ImageBlock: (props: ReactCustomBlockRenderProps<typeof imageBlockConfig, any, any>) => import("react/jsx-runtime").JSX.Element;
export declare const ReactImageBlock: {
config: {
type: "image";
propSchema: {
textAlignment: {
default: "left";
values: readonly ["left", "center", "right", "justify"];
};
backgroundColor: {
default: "default";
};
name: {
default: "";
};
url: {
default: "";
};
caption: {
default: "";
};
showPreview: {
default: true;
};
previewWidth: {
default: undefined;
type: "number";
};
};
content: "none";
isFileBlock: true;
fileBlockAccept: string[];
};
implementation: import("@blocknote/core").TiptapBlockImplementation<{
type: "image";
propSchema: {
textAlignment: {
default: "left";
values: readonly ["left", "center", "right", "justify"];
};
backgroundColor: {
default: "default";
};
name: {
default: "";
};
url: {
default: "";
};
caption: {
default: "";
};
showPreview: {
default: true;
};
previewWidth: {
default: undefined;
type: "number";
};
};
content: "none";
isFileBlock: true;
fileBlockAccept: string[];
}, any, import("@blocknote/core").InlineContentSchema, import("@blocknote/core").StyleSchema>;
};