Button Styles
Bootstrap 5 provides different styles of buttons:
Button Outline
Bootstrap 5 also provides eight outline/bordered buttons.
Move the mouse over them to see an additional "hover" effect:
Button Sizes
Use the .btn-lg class for large buttons or .btn-sm class for small buttons:
Block Level Buttons
To create a block level button that spans the entire width of the parent element, use the .d-grid "helper" class on the parent element:
Active/Disabled Buttons
A button can be set to an active (appear pressed) or a disabled (unclickable) state:
Spinner Buttons
You can also add "spinners" to a button
Button Groups
Bootstrap 5 allows you to group a series of buttons together (on a single line) in a button group:
Vertical Button Groups
Bootstrap 5 also supports vertical button groups:
Button Groups Side by Side
Button groups are "inline" by default, which makes them appear side by side when you have multiple groups: