Primitives
Editor.ContextMenu
Right-click menu wrapper. Auto-discriminates between section menu and canvas menu.
Right-click menu wrapper. Auto-discriminates between section menu and canvas menu.
Usage
import { Editor } from '@docmosaic/react';
<Editor.Root>
<Editor.ContextMenu />
</Editor.Root>;API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
| children * | ReactNode | - | Children wrapped by the right-click trigger. Typically |
| keymap | Partial<EditorKeymap> | undefined | - | Override the displayed shortcut chips. Defaults to DEFAULT_KEYMAP. Pass the same partial map you handed to
|
| className | string | undefined | - | Optional class applied to the trigger wrapper. |
Related
- Root - the orchestrator