@mocanvas/mocanvas · function

DefaultContextMenu

declare function DefaultContextMenu({ children, disabled }: TLUiContextMenuProps): react.JSX.Element

The right-click menu.

Wraps the canvas rather than sitting beside it: the browser fires contextmenu at whatever element is under the pointer, so the menu has to own that element. This is why ContextMenu and Canvas are alternatives in the chrome map — filling this slot takes over rendering the canvas.

Mentioned here

mocanvas is built by Symbio. Free for non-commercial, non-profit and development use; commercial use needs an agreement. Not affiliated with or endorsed by tldraw.