@mocanvas/mocanvas · interface

TldrawUiProps

interface TldrawUiProps

The whole chrome, laid out.

Every panel here is read out of the components map first, so the layout is the only thing this component owns: which slots exist, what order they sit in, and which of them are suppressed in focus mode. Replacing a panel never requires replacing this, and replacing this never requires reimplementing a panel.


Properties · 6

children?: ReactNode

The canvas, and anything else that belongs under the chrome.

components?: TLUiComponents

Replace or remove a UI panel.

forceMobile?: boolean

Pin the layout to its narrowest form.

hideUi?: boolean

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

onUiEvent?: TLUiEventHandler

Reported UI events.

overrides?: TLUiOverrides

Rewrite the tool and action lists the panels render from.

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.