@mocanvas/editor · type

TLComponentsResolved

type TLComponentsResolved = {
    [K in keyof TLComponents]-?: NonNullable<TLComponents[K]> | null;
}

The chrome map after mocanvas's defaults have been merged in: every slot present, null where it was removed.

Each slot keeps the props of its own declaration, so useEditorComponents() hands back a Grid that still wants a camera and a Canvas that wants nothing.

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.