Wrap a series of buttons with .btn
in .btn-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 Button Group
.btn-group-vertical
-
Button Dropdown
Button Dropup
Trigger dropdown menus above elements by adding.dropup
to the parent element.Button Dropright
Trigger dropdown menus at the right of the elements by adding.dropright
to the parent element.Button Dropleft
Trigger dropdown menus at the left of the elements by adding.dropleft
to the parent element. -
Checkbox and Radio Buttons
Adddata-toggle="buttons"
to a.btn-group
containing those modified buttons to enable their toggling behavior via JavaScript and add.btn-group-toggle
to style the input within your buttons. -
Social Buttons