@mocanvas/mocanvas · interface

DefaultUiProps

interface DefaultUiProps

This one ships without a description. The signature above is read from the package, and the guides cover the area it belongs to.


Properties · 7

canvas?: ReactNode

The canvas, which is published as the Canvas chrome slot and rendered through it. Omit it (as tests of the chrome alone do) and the slot stays empty; an app can still fill it itself.

children?: ReactNode

Rendered inside the UI context, so it can use useTools() and friends.

components?: TLComponents

Replace (ComponentType) or remove (null) a chrome slot.

editor: Editor
hidePanels?: boolean

Render the canvas and the app's own slots, but none of mocanvas's panels. Mocanvas's hideUi.

overrides?: TLUiOverrides

Rewrite the tool and action lists the chrome renders from.

showStats?: boolean

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.