@mocanvas/mocanvas · function
declare function useHostedSlot(name: "QuickActions" | "ActionsMenu", fallback: ComponentType): ComponentType | nullResolve a chrome slot the way the surrounding chrome resolves it.
There are two component maps — TldrawUi carries its own, DefaultUi uses
the editor's — and the panels below are rendered by both. Reading only one
of them is how the hosted row first rendered nothing at all: the slot was
set, in the other map. null stays null, so components={{ … : null }}
still means "remove it" even though it is a panel that draws it.
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.