Use button groups to join multiple buttons together as one composite component. Build them with a series of <a>
or <button>
elements.
We recommend the following guidelines for using button groups and toolbars:
+ +Use button groups to join multiple buttons together as one composite component. Build them with a series of <a>
or <button>
elements. We recommend the following guidelines for using button groups and toolbars:
<a>
or <button>
.Related Button groups with dropdowns (see below) should be called out separately and always include a dropdown caret to indicate intended behavior.
-Here's how the HTML looks for a standard button group built with anchor tag buttons:
-Two basic options, along with two more specific variations.
+ +Wrap a series of buttons with .btn
in .btn-group
.
Combine sets of <div class="btn-group">
into a <div class="btn-toolbar">
for more complex components.
@@ -169,9 +179,10 @@ </div> </div>+
Button groups can also function as radios, where only one button may be active, or checkboxes, where any number of buttons may be active. View the Javascript docs for that.
- +Heads up! Buttons with dropdowns must be individually wrapped in their own .btn-group
within a .btn-toolbar
for proper rendering.
{{_i}}Use button groups to join multiple buttons together as one composite component. Build them with a series of <a>
or <button>
elements.{{/i}}
{{_i}}We recommend the following guidelines for using button groups and toolbars:{{/i}}
+ +{{_i}}Use button groups to join multiple buttons together as one composite component. Build them with a series of <a>
or <button>
elements. We recommend the following guidelines for using button groups and toolbars:{{/i}}
<a>
or <button>
.{{/i}}{{_i}}Related Button groups with dropdowns (see below) should be called out separately and always include a dropdown caret to indicate intended behavior.{{/i}}
-{{_i}}Here's how the HTML looks for a standard button group built with anchor tag buttons:{{/i}}
-{{_i}}Two basic options, along with two more specific variations.{{/i}}
+ +{{_i}}Wrap a series of buttons with .btn
in .btn-group
.{{/i}}
{{_i}}Combine sets of <div class="btn-group">
into a <div class="btn-toolbar">
for more complex components.{{/i}}
@@ -92,9 +102,10 @@ </div> </div>+
{{_i}}Button groups can also function as radios, where only one button may be active, or checkboxes, where any number of buttons may be active. View the Javascript docs for that.{{/i}}
-{{_i}}Get the javascript »{{/i}}
+{{_i}}Heads up!{{/i}} {{_i}}Buttons with dropdowns must be individually wrapped in their own .btn-group
within a .btn-toolbar
for proper rendering.{{/i}}