@blocknote/react
Version:
A "Notion-style" block-based extensible text editor built on top of Prosemirror and Tiptap.
58 lines (57 loc) • 2.28 kB
TypeScript
import { PortalElementsMap } from "./portalElements.js";
export type BlockNoteDefaultUIProps = {
/**
* Whether the formatting toolbar should be enabled.
* @see {@link https://blocknotejs.org/docs/react/components/formatting-toolbar}
*/
formattingToolbar?: boolean;
/**
* Whether the link toolbar should be enabled.
* @see {@link https://blocknotejs.org/docs/react/components/link-toolbar}
*/
linkToolbar?: boolean;
/**
* Whether the slash menu should be enabled.
* @see {@link https://blocknotejs.org/docs/react/components/suggestion-menus#slash-menu}
*/
slashMenu?: boolean;
/**
* Whether the block side menu should be enabled.
* @see {@link https://blocknotejs.org/docs/react/components/side-menu}
*/
sideMenu?: boolean;
/**
* Whether the file panel should be enabled.
* @see {@link https://blocknotejs.org/docs/react/components/file-panel}
*/
filePanel?: boolean;
/**
* Whether the table handles should be enabled.
* @see {@link https://blocknotejs.org/docs/react/components/table-handles}
*/
tableHandles?: boolean;
/**
* Whether the emoji picker should be enabled.
* @see {@link https://blocknotejs.org/docs/advanced/grid-suggestion-menus#emoji-picker}
*/
emojiPicker?: boolean;
/**
* Whether the default comments UI feature should be enabled.
* @see {@link https://blocknotejs.org/docs/react/components/comments}
*/
comments?: boolean;
/**
* Whether the suggestion-marks attribution tooltip (shown on hover over a
* suggestion mark in collaboration/suggestion mode) should be enabled.
*/
attributionTooltip?: boolean;
/**
* Per-element portal targets for floating UI. Each key corresponds to one
* of the default UI elements; values can be an `HTMLElement` or a CSS
* selector string. The optional `default` key sets the target for every
* element without its own entry; when omitted, the element wrapping the
* editor is used (its `bn-container` in the default layout).
*/
portalElements?: PortalElementsMap;
};
export declare function BlockNoteDefaultUI(props: BlockNoteDefaultUIProps): import("react/jsx-runtime").JSX.Element;