UNPKG

@blocknote/react

Version:

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

13 lines (12 loc) 806 B
import { BlockSchema, DefaultBlockSchema, DefaultInlineContentSchema, DefaultStyleSchema, InlineContentSchema, StyleSchema } from "@blocknote/core"; import { UseFloatingOptions } from "@floating-ui/react"; import { ComponentProps, FC } from "react"; import { Thread } from "./Thread.js"; /** * This component is used to display a thread in a floating card. * It can be used when the user clicks on a thread / comment in the document. */ export declare const FloatingThreadController: <B extends BlockSchema = DefaultBlockSchema, I extends InlineContentSchema = DefaultInlineContentSchema, S extends StyleSchema = DefaultStyleSchema>(props: { floatingThread?: FC<ComponentProps<typeof Thread>>; floatingOptions?: Partial<UseFloatingOptions>; }) => import("react/jsx-runtime").JSX.Element | null;