@mocanvas/mocanvas · interface

DefaultToolbarProps

interface DefaultToolbarProps

This one ships without a description. The signature above is read from the package, and the guides cover the area it belongs to.


Properties · 6

children?: ReactNode
label?: string

Accessible name for the toolbar.

maxItems?: number

How many children stay inline at the widest width, same counting.

maxSizePx?: number

The width at which maxItems applies, in CSS px.

minItems?: number

How many children stay inline at the narrowest width. The count is a *last inline index*, not a length: children 0..itemsToShow are inline and the rest overflow, so n keeps n + 1 of them.

minSizePx?: number

The width at which minItems applies, in CSS px.

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.