Skip to main content

Buttons

Use Bootstrap’s custom button styles for actions in forms, dialogs, and more with support for multiple sizes and states.

<button type="button" class="btn btn-primary">Primary</button>
<button type="button" class="btn btn-secondary">Secondary</button>
...

Button tags

The .btn classes are designed to be used with the <button> element. However, you can also use these classes on <a> or <input> elements.

<a class="btn btn-primary" href="#">Link</a>
<input class="btn btn-primary" type="submit" value="Submit">

Outline buttons

Replace the default modifier classes with the .btn-outline-* ones to remove all background images and colors on any button.

<button type="button" class="btn btn-outline-primary">Primary</button>
<button type="button" class="btn btn-outline-light">Light</button>

Sizes

Fancy larger or smaller buttons? Add .btn-lg or .btn-sm for additional sizes.

<button type="button" class="btn btn-primary btn-lg">Large button</button>
<button type="button" class="btn btn-primary btn-sm">Small button</button>

Bootstrap Documentation