@mocanvas/mocanvas · function

TldrawUiToolbarToggleGroup

declare function TldrawUiToolbarToggleGroup({ label, type, value, values, onValueChange, className, children }: TLUiToolbarToggleGroupProps): react.JSX.Element

A run of mutually-exclusive (or multi-select) toolbar buttons.

role="radiogroup" for the single case: the difference matters to a screen reader, which announces "2 of 4" for a radio and "pressed" for a toggle.

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.