The .btn styles can be applied to other elements, such as <label>s, to provide checkbox or radio style button toggling. Add data-bs-toggle="buttons" to a .btn-group containing those modified buttons to enable their toggling behavior via JavaScript.

Sizes example

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 example

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 using class .btn-group-vertical. Split button dropdowns are not supported here.

Checkbox and Radio buttons

.button styles can be applied to other elements, such as s, to provide checkbox or radio style button toggling. Add data-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 inputs within your buttons. Note that you can create single input-powered buttons or groups of them.
The checked state for these buttons is only updated via click event on the button. If you use another method to update the input—e.g., with input type="reset" or by manually applying the input’s checked property—you’ll need to toggle .active on the label manually.
Checkbox
Radio

Toolbar example

Combine sets of button groups into button toolbars for more complex components. Use utility classes as needed to space out groups, buttons, and more.