Components
ButtonGroup
Combines related buttons into a single visual unit.
Also composes with Input, Select, and DropdownMenu; dividers defaults on for the segmented variant.
Usage
Best practices
Use
ButtonGroupto visually join relatedButtons (plusInput/Select/DropdownMenu); for one/many *selection* state reach forToggleGroup.The
segmentedvariant owns the border/background/shadow and defaultsdividerson, whilejoined(default) lets each child draw its own - don't mix the two.
Props
ButtonGroup
ButtonGroupSeparator
Also exports
- component
ButtonGroupText - const
buttonGroupVariants
Composition
Builds on
Used by