@blocknote/react
Version:
A "Notion-style" block-based extensible text editor built on top of Prosemirror and Tiptap.
56 lines (55 loc) • 2.22 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;
/**
* Per-element portal targets for floating UI. Each key corresponds to one
* of the default UI elements; values can be an `HTMLElement`, a CSS
* selector string, or `null` (= `document.body`). The optional `default`
* key controls where `editor.portalElement` itself is mounted; when
* omitted, the editor's `bn-container` element is used.
*
* Per-element keys override `default` for that one element. Unspecified
* elements fall back to `default` via `editor.portalElement`.
*/
portalElements?: PortalElementsMap;
};
export declare function BlockNoteDefaultUI(props: BlockNoteDefaultUIProps): import("react/jsx-runtime").JSX.Element;