@mocanvas/mocanvas · interface

TLUiToolbarProps

interface TLUiToolbarProps

The toolbar primitive, and the buttons that go in it.

A toolbar is not a list of buttons: it is one tab stop, and the arrow keys move within it. Browsers give you none of that for free, so the roving tabindex lives here — a caller composing TldrawUiToolbarButtons gets the keyboard behaviour without writing any of it.


Properties · 6

children?: ReactNode
className?: string | undefined
label: string
orientation?: "horizontal" | "vertical"
ref?: Ref<HTMLDivElement> | undefined
style?: CSSProperties | undefined

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.