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

Ensure correct roleand provide a label

The .btnstyles 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-groupcontaining those modified buttons to enable toggling in their respective styles. The checked state for these buttons is only updated viaclick eventon 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 .activeon 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-groupwithin another .btn-groupwhen you want dropdown menus mixed with a series of buttons

Input checkbox & radio

.buttonstyles 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-groupcontaining those modified buttons to enable their toggling behavior via JavaScript and add .btn-group-toggleto 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 clickeventon the button. If you use another method to update the input—e.g., with <input type="reset">or by manually applying the input’s checkedproperty—you’ll need to toggle .activeon the <label>manually.
Checkbox
Radio