Back to ButtonGroup
ButtonGroup

Vertical

Stacked zoom controls with label and help text.

Adjust the canvas magnification.

API

PropTypeDefaultDescription
options*ButtonGroupOption | { type: "separator" }[]Option list rendered as merged buttons; separator items divide segments.
multiplebooleanfalseWhen true, value is string[] and options toggle independently.
value / defaultValuestring | string[]Controlled / uncontrolled selected value(s).
onValueChange(value: string | string[]) => voidFires when the selection changes.
labelReact.ReactNodeTop field label.
helpTextReact.ReactNodeGroup-level help text.
errorReact.ReactNodeError text; sets `aria-invalid` on the group.
requiredbooleanMarks the field as required.
orientation"horizontal" | "vertical"horizontalLayout direction for merged buttons.
sizeButton sizesmSize applied to every option button.
variantButton variantoutlineVariant for unselected options.
selectedVariantButton variantsolidVariant for selected options.
disabledbooleanDisables every option in the group.
classNamestringMerged with the inner group classes.
View full API on ButtonGroup

More ButtonGroup examples