Bootstrap includes six predefined button styles, each serving its own semantic purpose.
Replace the default modifier classes with the
.btn-outline-* ones to remove all background images and colors on any
.btn-rounded for button round border.
Buttons With Icon
Add icon in button.
Soft Icon Buttons
btn-soft-* for button round border.
Make buttons look inactive by adding the
disabled boolean attribute to any
<button> element. Disabled buttons have
pointer-events: none applied to, preventing hover and active states from triggering.
Example of Snip Buttons
.btn-sm for additional sizes.
.w-lg class for additional buttons width.
classes are designed to be used with the
However, you can also use these classes on
<input> elements (though
some browsers may apply a slightly different rendering).
.d-grid. class in parent div for block buttons
Checkbox & Radio Buttons
Create button-like checkboxes and radio buttons by using
.btn styles rather than
.form-check-label on the
Wrap a series of buttons with
Combine sets of button groups into button toolbars for more complex components. Use utility classes as needed to space out groups, buttons, and more.
Instead of applying button sizing
classes to every button in a group, just add
.btn-group-* to each
.btn-group, including each one
when nesting multiple groups.
Make a set of buttons appear vertically stacked rather than horizontally. Split button dropdowns are not supported here.