button-group component
Drop-in semantic component. See examples, sizes, variants, and source.
Connected row (or column) of related buttons. Wrap one or more
button children in
button-group — middle borders collapse and
rounded corners stay only at the ends. Apply size and intent
modifiers to the wrapper (children inherit). Type modifiers
(navigation, toggle,
toolbar, pagination,
tabs, stepper,
compact) tune the appearance for common
use cases. Use vertical for a stacked
column and separated for gapped buttons.
Class API Reference
| Type | Class | Usage | Notes |
|---|---|---|---|
| Base | button-group |
Container for grouped buttons | Required base class |
| Layout | separated |
Adds gaps between buttons | Buttons have individual borders |
vertical |
Stack buttons vertically | Changes to column layout | |
fluid |
Full width with equal sizing | Buttons stretch to fill container | |
| Size | tiny |
Extra small size | Inherits to all child buttons |
small |
Small size | Inherits to all child buttons | |
| (default) | Medium size | No class needed | |
large |
Large size | Inherits to all child buttons | |
big |
Extra large size | Inherits to all child buttons | |
| Types | navigation |
Icon-only navigation | For prev/next controls |
toggle |
Radio-style selection | Use with active class | |
toolbar |
Editor toolbar style | Gray background container | |
pagination |
Page navigation | Numeric pagination style | |
tabs |
Tab navigation | Underline active style | |
stepper |
Step indicators | Use with completed/active | |
compact |
Reduced padding | Tighter button spacing | |
equal |
Equal width buttons | All buttons same width | |
| Colors | primary |
Primary theme color | Inherits to child buttons |
positive |
Success/confirm | Green color scheme | |
negative |
Danger/delete | Red color scheme | |
warning |
Caution/alert | Orange color scheme | |
info |
Informational | Blue color scheme | |
| + all extended colors | Additional colors | red, orange, yellow, etc. | |
| States | active |
Active button state | Applied to individual buttons |
completed |
Completed step | For stepper groups | |
disabled |
Disabled state | Applied to individual buttons |