Button groups allow you to group a series of buttons together, either horizontally or vertically.
<div class="btn-group p-5"> <button type="button" class="btn btn-primary btn-text-color"><i class="fa-solid fa-house"></i></button> <button type="button" class="btn btn-primary btn-text-color"><i class="fa-solid fa-book-bookmark"></i></button> <button type="button" class="btn btn-primary btn-text-color active"><i class="fa-solid fa-external-link"></i></button> </div>
<div class="btn-group p-5"> <button type="button" class="btn btn-primary btn-text-color">Left</button> <button type="button" class="btn btn-primary btn-text-color">Middle</button> <button type="button" class="btn btn-primary btn-text-color active">Right</button> </div>
<div class="btn-group p-5 flex-column"> <button type="button" class="btn btn-primary btn-text-color"><i class="fa-solid fa-house"></i></button> <button type="button" class="btn btn-primary btn-text-color"><i class="fa-solid fa-book-bookmark"></i></button> <button type="button" class="btn btn-primary btn-text-color active"><i class="fa-solid fa-external-link"></i></button> </div>
Class | Description |
---|---|
.btn-group | Creates a group of buttons. |
.btn | Applies button styles to individual buttons. |
.active | Highlights the active button. |
.flex-column | Stacks the button group vertically. |