UNPKG

@blocknote/react

Version:

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

7 lines (6 loc) 745 B
import { BlockNoteEditor, BlockSchema, DefaultBlockSchema, DefaultInlineContentSchema, DefaultStyleSchema, InlineContentSchema, SideMenuState, StyleSchema, UiElementPosition } from "@blocknote/core"; import { FC } from "react"; import { DragHandleMenuProps } from "./DragHandleMenu/DragHandleMenuProps"; export type SideMenuProps<BSchema extends BlockSchema = DefaultBlockSchema, I extends InlineContentSchema = DefaultInlineContentSchema, S extends StyleSchema = DefaultStyleSchema> = { dragHandleMenu?: FC<DragHandleMenuProps<BSchema, I, S>>; } & Omit<SideMenuState<BSchema, I, S>, keyof UiElementPosition> & Pick<BlockNoteEditor<BSchema, I, S>["sideMenu"], "addBlock" | "blockDragStart" | "blockDragEnd" | "freezeMenu" | "unfreezeMenu">;