@mocanvas/mocanvas · interface

TLUiMainMenuProps

interface TLUiMainMenuProps

The props each panel slot is rendered with.

All of them take children and nothing else required: a panel reads the editor and the UI lists from context, so a replacement can be written without accepting a wiring prop it would only pass on. children is how the *Content half is swapped without replacing the panel's frame — the pattern every default panel below is built on.


Properties · 1

children?: ReactNode

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.