UNPKG

@blocknote/react

Version:

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

10 lines (9 loc) 442 B
/** * Subscribes to file upload start events. The callback is invoked whenever a * file upload begins within the editor, and the subscription is automatically * cleaned up when the component unmounts. * * @param callback - Function called when an upload starts. Receives the * `blockId` of the block where the upload was initiated, if available. */ export declare function useOnUploadStart(callback: (blockId?: string) => void): void;