Link Search Menu Expand Document

Buttons

Table of contents

  1. Buttons
    1. Basic button styles
    2. Outline buttons
    3. Button block
    4. Disabled

Basic button styles

<button type="button" class="btn btn-primary">Primary</button>
<button type="button" class="btn btn-secondary">Secondary</button>
<button type="button" class="btn btn-success">Success</button>
<button type="button" class="btn btn-danger">Danger</button>
<button type="button" class="btn btn-warning">Warning</button>
<button type="button" class="btn btn-orange">Orange</button>
<button type="button" class="btn btn-indigo">Indigo</button>
<button type="button" class="btn btn-pink">Pink</button>
<button type="button" class="btn btn-purple">Purple</button>
<button type="button" class="btn btn-info">Info</button>
<button type="button" class="btn btn-light">Light</button>
<button type="button" class="btn btn-dark">Dark</button>

Outline buttons

<button type="button" class="btn btn-outline-primary">Primary</button>
<button type="button" class="btn btn-outline-secondary">Secondary</button>
<button type="button" class="btn btn-outline-success">Success</button>
<button type="button" class="btn btn-outline-danger">Danger</button>
<button type="button" class="btn btn-outline-warning">Warning</button>
<button type="button" class="btn btn-outline-orange">Orange</button>
<button type="button" class="btn btn-outline-indigo">Indigo</button>
<button type="button" class="btn btn-outline-pink">Pink</button>
<button type="button" class="btn btn-outline-purple">Purple</button>
<button type="button" class="btn btn-outline-info">Info</button>
<button type="button" class="btn btn-outline-light">Light</button>
<button type="button" class="btn btn-outline-dark">Dark</button>

Button block

Create block level buttons—those that span the full width of a parent—by adding .btn-block.

<button type="button" class="btn btn-primary btn-block">Primary</button>
<button type="button" class="btn btn-success btn-block">Success</button>

Disabled

<button type="button" class="btn btn-success" disabled>Success</button>
<button type="button" class="btn btn-warning disabled">Success</button>