@mocanvas/mocanvas · interface
interface DefaultUiPropsThis 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?: ReactNodeThe 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?: ReactNodeRendered inside the UI context, so it can use useTools() and friends.
components?: TLComponentsReplace (ComponentType) or remove (null) a chrome slot.
editor: EditorhidePanels?: booleanRender the canvas and the app's own slots, but none of mocanvas's panels.
Mocanvas's hideUi.
overrides?: TLUiOverridesRewrite the tool and action lists the chrome renders from.
showStats?: booleanmocanvas 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.