Bootstrap 5 UI Tutorial

Build fast, responsive sites with Bootstrap 5

BS5 Buttons

Bootstrap 5 Buttons

Bootstrap 5 provides different styles of buttons.

Button Classes

.btn class provides the basic styling, followed by a color class like .btn-primary.

Button Outline

For buttons with an outline (no background color), use the .btn-outline-* classes.

Button Sizes

.btn-lg for large, .btn-sm for small.

Try It Yourself

Edit the code below and click Run to see the result live.

Source Code
Result
Topics