![]() |
VOOZH | about |
Bootstrap 5 provides different classes that allow changing button group sizes. Instead of using button sizing classes to every button element in a group, we can just add .btn-group-* class to set the button size in a button group.
Button Group Sizing Classes:
Syntax:
<div class="btn-group btn-group-lg" role="group" aria-label="..."> ... </div>
Example 1: In this example, we will use button group sizing classes to create button groups in different sizes.
Output:
Example 2: In this example, we will use button group sizing classes to create button groups in different sizes with font awesome icons.
Output:
Reference: https://getbootstrap.com/docs/5.0/components/button-group/#sizing