@blocknote/react
Version:
A "Notion-style" block-based extensible text editor built on top of Prosemirror and Tiptap.
15 lines (14 loc) • 858 B
TypeScript
import { BlockNoteEditor, BlockSchema, DefaultBlockSchema, DefaultInlineContentSchema, DefaultStyleSchema, InlineContentSchema, StyleSchema } 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<B extends BlockSchema = DefaultBlockSchema, I extends InlineContentSchema = DefaultInlineContentSchema, S extends StyleSchema = DefaultStyleSchema>(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.
*/
newCommentEditor: BlockNoteEditor<any, any, any>;
}): import("react/jsx-runtime").JSX.Element;