@mocanvas/mocanvas · interface
interface TldrawUiPropsThe 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?: ReactNodeThe canvas, and anything else that belongs under the chrome.
components?: TLUiComponentsReplace or remove a UI panel.
forceMobile?: booleanPin the layout to its narrowest form.
hideUi?: booleanRender the canvas and the app's own slots, but none of mocanvas's panels.
onUiEvent?: TLUiEventHandlerReported UI events.
overrides?: TLUiOverridesRewrite 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.