Button Groups
Basic example
Wrap a series of buttons with .btn
in .btn-group
.
Mixed styles
Background color classes can be mixed with each buttons inside the group.
Outlined styles
You can use the outlined buttons as well wihin the group.
Checkbox and radio button groups
Combine button-like checkbox and radio toggle buttons into a seamless looking button group.
Button toolbar
Combine sets of button groups into button toolbars for more complex components. Use utility classes as needed to space out groups, buttons, and more.
Sizing
Instead of applying button sizing classes to every button in a group, just add .btn-group-*
to each .btn-group
, including each one when nesting multiple groups.
Nesting
Place a .btn-group
within another .btn-group
when you want dropdown menus mixed with a series of buttons.
Vertical variation
Make a set of buttons appear vertically stacked rather than horizontally. Split button dropdowns are not supported here.