Let’s start it with Bootstrap, the world’s most popular framework for building responsive, intellectual applications of any kind, with bootstrap CDN and predefined page templates.
Button groups are a series of buttons on a single line, combined to show a common functionality. Wrap the <div> element with .btn-group utility class to generate a button group. Let's discuss a basic button group for now then we will elaborate on some different types.
button tags horizontally, to show a button grid. We implement class=btn-group on the div tag will make it a button grid.To change the appearance or position of buttons vertically, we can implement the btn-group-vertical utility on the div tag.
btn-group-vertical utility from the Bootstrap 4 packages.Nested means a similar shape will be placed inside the other. To show button groups as nested, we replicate the same code within the div container of the previous button group div.
div tag creates another container for the button group.More button and drops down with two options.