Buttons

Default Buttons

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

Button Types

Link
Button
Input
Submit
Reset
Link
<a class="btn btn-primary" href="javascript:void(0)" role="button">Link</a>
Button
<button class="btn btn-primary" type="submit">Button</button>
Input
<input class="btn btn-primary" type="button" value="Input">
Submit
<input class="btn btn-primary" type="submit" value="Submit">
Reset
<input class="btn btn-primary" type="reset" value="Reset">

Button With Different Sizes

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

Outline Buttons

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

Block Level Buttons

<button type="button" class="btn btn-primary btn-block">Block level button</button>

Button States

Active Button
Active Link
Disabled Button
Disabled Link
Active Button
<button type="button" class="btn btn-secondary active">Default Button</button>
Active Link
<a href="javascript:void(0)" class="btn btn-primary active" role="button" aria-pressed="true">Primary link</a>
Disabled Button
<button type="button" class="btn btn-primary" disabled="">Primary buttonD</button>
Disabled Link
<a href="javascript:void(0)" class="btn btn-secondary disabled" tabindex="-1" role="button" aria-disabled="true">Link</a>

Checkbox Buttons

Checked
Unchecked
Checked
<span class="btn-group-toggle" data-toggle="buttons">
<label class="btn btn-secondary">
<input type="checkbox" checked=""> Checked
</label>
</span>
Unchecked
<span class="btn-group-toggle" data-toggle="buttons">
<label class="btn btn-outline-primary">
<input type="checkbox"> Unchecked
</label>
</span>

Radio Buttons

Default
Outline
Default
<div class="btn-group btn-group-toggle" data-toggle="buttons">
<label class="btn btn-primary"> <input type="radio" name="options" id="option1">
Radio
</label>
<label class="btn btn-primary active"> <input type="radio" name="options" id="option2" checked=""> Active
</label>
<label class="btn btn-primary"> <input type="radio" name="options" id="option3">
Radio
</label>
</div>
Outline
<div class="btn-group btn-group-toggle" data-toggle="buttons">
<label class="btn btn-outline-secondary"> <input type="radio" name="options" id="option4"> Radio
</label>
<label class="btn btn-outline-secondary active">
<input type="radio" name="options" id="option5" checked=""> Active
</label>
<label class="btn btn-outline-secondary"> <input type="radio" name="options" id="option6"> Radio
</label>
</div>

Toggle States

Default
Outline
Default
<button type="button" class="btn btn-primary active" data-toggle="button" aria-pressed="true">
Single toggle
</button>
Outline
<button type="button" class="btn btn-outline-secondary" data-toggle="button" aria-pressed="false">
Single toggle
</button>