![]() |
VOOZH | about |
Bootstrap 5 Button group nesting is used to create a dropdown menu mixed with a series of buttons. To make the button group nesting, we will use .btn-group class.
Button group nesting used Class:
Syntax:
<div class="btn-group" role="group" aria-label=""> ... </div>
Example 1: In this example, we will use .btn-group class to create a button group nesting.
Output:
Example 2: In this example, we will use .btn-group-vertical class to create a button group nesting in a vertical way.
Output:
Reference: https://getbootstrap.com/docs/5.0/components/button-group/#nesting