@mocanvas/mocanvas · function

CenteredTopPanelContainer

declare function CenteredTopPanelContainer({ maxWidth, className, children }: CenteredTopPanelContainerProps): react.JSX.Element

Centres a panel across the top, between whatever is docked left and right.

The margins are the two side panels' widths, so the contents are centred in the space that is actually free rather than in the window — which is not the same thing once the style panel is open.

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.