Badge

A small count and labeling component.

Bootstrap documentation


Primary Secondary Success Danger Warning Info Light Dark
<span class="badge badge-primary">Primary</span> 
<span class="badge badge-secondary">Secondary</span> 
<span class="badge badge-success">Success</span> 
<span class="badge badge-danger">Danger</span>
<span class="badge badge-warning">Warning</span>
<span class="badge badge-info">Info</span>
<span class="badge badge-light">Light</span>
<span class="badge badge-dark">Dark</span>
Primary Secondary Success Danger Warning Info
<span class="badge badge-primary-light">Primary</span> 
<span class="badge badge-secondary-light">Secondary</span> 
<span class="badge badge-success-light">Success</span> 
<span class="badge badge-danger-light">Danger</span>
<span class="badge badge-warning-light">Warning</span>
<span class="badge badge-info-light">Info</span>
<button class="btn btn-primary" type="button">
  Notifications <span class="badge badge-light ml-1">4</span>
</button>

Pills

Primary Secondary Success Danger Warning Info Light Dark
<span class="badge badge-pill badge-primary">Primary</span>
<span class="badge badge-pill badge-secondary">Secondary</span>
<span class="badge badge-pill badge-success">Success</span>
<span class="badge badge-pill badge-danger">Danger</span>
<span class="badge badge-pill badge-warning">Warning</span>
<span class="badge badge-pill badge-info">Info</span>
<span class="badge badge-pill badge-light">Light</span>
<span class="badge badge-pill badge-dark">Dark</span>
Primary Secondary Success Danger Warning Info
<span class="badge badge-pill badge-primary-light">Primary</span>
<span class="badge badge-pill badge-secondary-light">Secondary</span>
<span class="badge badge-pill badge-success-light">Success</span>
<span class="badge badge-pill badge-danger-light">Danger</span>
<span class="badge badge-pill badge-warning-light">Warning</span>
<span class="badge badge-pill badge-info-light">Info</span>