@mocanvas/mocanvas · constant

DEFAULT_TOOLBAR_ITEMS

declare const DEFAULT_TOOLBAR_ITEMS: readonly ReactNode[]

The default set of toolbar buttons, in order.

An array rather than markup, because OverflowingToolbar splits its children one by one: handed <DefaultToolbarContent /> it would see a single opaque child and could only move the whole bar into the popover at once. Children.toArray flattens a nested array, so spreading this list into the bar gives it the per-button children it measures against.

Mentioned here

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.