Badges

Small count and labeling component.

Bootstrap docs

Contextual variations

PrimarySecondarySuccessDangerWarningInfoLightDark
<!-- Primary badge -->
<span class="badge badge-primary">Primary</span>

<!-- Secondary badge -->
<span class="badge badge-secondary">Secondary</span>

<!-- Success badge -->
<span class="badge badge-success">Success</span>

<!-- Danger badge -->
<span class="badge badge-danger">Danger</span>

<!-- Warning badge -->
<span class="badge badge-warning">Warning</span>

<!-- Info badge -->
<span class="badge badge-info">Info</span>

<!-- Light badge -->
<span class="badge badge-light">Light</span>

<!-- Dark badge -->
<span class="badge badge-dark">Dark</span>

Pill badges

PrimarySecondarySuccessDangerWarningInfoLightDark
<!-- Primary badge -->
<span class="badge badge-pill badge-primary">Primary</span>

<!-- Secondary badge -->
<span class="badge badge-pill badge-secondary">Secondary</span>

<!-- Success badge -->
<span class="badge badge-pill badge-success">Success</span>

<!-- Danger badge -->
<span class="badge badge-pill badge-danger">Danger</span>

<!-- Warning badge -->
<span class="badge badge-pill badge-warning">Warning</span>

<!-- Info badge -->
<span class="badge badge-pill badge-info">Info</span>

<!-- Light badge -->
<span class="badge badge-pill badge-light">Light</span>

<!-- Dark badge -->
<span class="badge badge-pill badge-dark">Dark</span>

Inside heading

Example heading New

Example heading New

Example heading New

Example heading New

Example heading New
Example heading New
<h1>Example heading <span class="badge badge-secondary">New</span></h1>
<h2>Example heading <span class="badge badge-secondary">New</span></h2>
<h3>Example heading <span class="badge badge-secondary">New</span></h3>
<h4>Example heading <span class="badge badge-secondary">New</span></h4>
<h5>Example heading <span class="badge badge-secondary">New</span></h5>
<h6>Example heading <span class="badge badge-secondary">New</span></h6>

Inside button

<!-- Button + badge -->
<button type="button" class="btn btn-primary">
  Notifications <span class="badge badge-light ml-1">4</span>
</button>

<!-- Pill button + pill badge -->
<button type="button" class="btn btn-pill btn-dark">
  Profile <span class="badge badge-pill badge-light ml-1">9</span>
</button>

<!-- Outline button + badge -->
<button type="button" class="btn btn-outline-secondary">
  Messages <span class="badge badge-success ml-1">18</span>
</button>

Inside list group

<!-- Badges inside list group -->
<div class="list-group">
  <a href="#" class="list-group-item list-group-item-action d-flex justify-content-between align-items-center">
    Messages
    <span class="badge badge-pill badge-info">14</span>
  </a>
  <a href="#" class="list-group-item list-group-item-action d-flex justify-content-between align-items-center">
    Orders
    <span class="badge badge-pill badge-warning">2</span>
  </a>
  <a href="#" class="list-group-item list-group-item-action d-flex justify-content-between align-items-center">
    Favourites
    <span class="badge badge-pill badge-danger">6</span>
  </a>
</div>
Top