Advertisement
Google Ad Slot: content-top
Bootstrap 5 Button Group
Bootstrap 5 provides a button group component, which allows you to group a series of buttons together on a single line for compact user interfaces.
btn-group: Wraps the group of buttons.btn: Styles the buttons within the group.
Vertical Button Group:
To stack buttons vertically, use the btn-group-vertical class:
Sizing Button Groups:
You can create small or large button groups by adding .btn-group-sm or .btn-group-lg.
Justified Button Groups:
To make buttons stretch to fill the width of their parent, use utilities like d-flex and w-100.
Disabled Buttons in Groups:
You can disable buttons individually in a group by adding the disabled attribute.