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