@blocknote/react
Version:
A "Notion-style" block-based extensible text editor built on top of Prosemirror and Tiptap.
16 lines (15 loc) • 685 B
TypeScript
import { BlockNoteEditor } from "@blocknote/core";
/**
* The FloatingComposer component displays a comment editor "floating" card.
*
* It's used when the user highlights a parts of the document to create a new comment / thread.
*/
export declare function FloatingComposer(props: {
/**
* The (empty) editor used to compose the new comment. Created and owned by
* the `FloatingComposerController`, so it can check for unsaved text before
* the composer is dismissed. Includes `CommentEditorSubmitExtension` with
* the callback that creates the thread.
*/
newCommentEditor: BlockNoteEditor<any, any, any>;
}): import("react/jsx-runtime").JSX.Element;