@mocanvas/mocanvas · function

TldrawUiInFrontOfTheCanvas

declare function TldrawUiInFrontOfTheCanvas({ children }: {
    children?: ReactNode;
}): react.JSX.Element

A slot for whatever an app wants drawn over the canvas but under the panels.

pointer-events: none on the layer and auto on its children, so a badge pinned to a shape is clickable while the empty space around it still pans the canvas.

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.