Buttons

Buttons

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

<buttontype="button"class="btn btn-outline-primary">Primary</button><buttontype="button"class="btn btn-outline-secondary">Secondary</button><buttontype="button"class="btn btn-outline-success">Success</button><buttontype="button"class="btn btn-outline-danger">Danger</button><buttontype="button"class="btn btn-outline-warning">Warning</button><buttontype="button"class="btn btn-outline-info">Info</button><buttontype="button"class="btn btn-outline-light">Light</button><buttontype="button"class="btn btn-outline-dark">Dark</button>

Outline Button

In need of a button, but not the hefty background colors they bring? Replace the default modifier classes with the .btn-outline-* ones to remove all background images and colors on any button.

Button Sizes

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

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

Button Group

Group a series of buttons together on a single line with the button group, and super-power them with JavaScript.

<divclass="btn-group"role="group"aria-label="Basic example"><buttontype="button"class="btn btn-secondary">Left</button><buttontype="button"class="btn btn-secondary">Middle</button><buttontype="button"class="btn btn-secondary">Right</button></div>

Button Group Sizing

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.

<divclass="btn-group"role="group"aria-label="...">...</div><divclass="btn-group btn-group-lg"role="group"aria-label="...">...</div><divclass="btn-group btn-group-sm"role="group"aria-label="...">...</div>