UNPKG

@blocknote/react

Version:

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

18 lines (17 loc) 744 B
import { ComponentProps, FC } from "react"; import { FloatingUIOptions } from "../Popovers/FloatingUIOptions.js"; 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 default function FloatingThreadController(props: { floatingThread?: FC<ComponentProps<typeof Thread>>; floatingUIOptions?: FloatingUIOptions; /** * Override the DOM node this floating element portals into. Falls back to * `editor.portalElement` (which by default is mounted inside `bn-container`) * when omitted. */ portalElement?: HTMLElement | null; }): import("react/jsx-runtime").JSX.Element;