Button Group Group a series of buttons together on a single line with the button group, and super-power them with JavaScript.

Ensure correct role and provide a label

The .btn styles can be applied to other elements, such as <label>s, to provide checkbox or radio style button toggling. Add data-toggle="buttons" to a .btn-group containing those modified buttons to enable toggling in their respective styles. 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.

Sizes example




Toolbar example

Fuse button groups into toolbars for a comprehensize component. Utility classes is needed to set margins to groups and buttons.

Verticle example

Make a set of buttons appear vertically stacked rather than horizontally using class .btn-group-vertical. Split button dropdowns are not supported here.

Nesting example

Place a .btn-group within another .btn-group when you want dropdown menus mixed with a series of buttons

Input checkbox & radio

.button styles can be applied to other elements, such as <label>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 <input>s 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