Button Group Group a series of buttons together on a single line with the button group, and super-power them with JavaScript.
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
Verticle example
.btn-group-vertical. Split button dropdowns are not supported here.
Nesting example
.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.
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.
