@mocanvas/editor · function

useEditorComponents

declare function useEditorComponents(): TLComponentsResolved

The chrome map after defaults and overrides. Use it to render a slot from inside another slot — the pattern a context menu needs, since it has to render the Canvas inside its own trigger.

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.