Loading...

Menu

Content

Components

Utilities

Buy now

Badges

Small count and labeling component.

Bootstrap docs

Solid

Primary Secondary Success Danger Warning Info
Light
Dark
<!-- Primary solid badge -->
<span class="badge bg-primary fs-sm">Primary</span>

<!-- Secondary solid badge -->
<span class="badge bg-secondary fs-sm">Secondary</span>

<!-- Success solid badge -->
<span class="badge bg-success fs-sm">Success</span>

<!-- Danger solid badge -->
<span class="badge bg-danger fs-sm">Danger</span>

<!-- Warning solid badge -->
<span class="badge bg-warning fs-sm">Warning</span>

<!-- Info solid badge -->
<span class="badge bg-info fs-sm">Info</span>

<!-- Light solid badge -->
<span class="badge bg-light fs-sm">Light</span>

<!-- Dark solid badge -->
<span class="badge bg-dark fs-sm">Dark</span>

Outline

Primary Secondary Success Danger Warning Info
Light
Dark
<!-- Primary outline badge -->
<span class="badge border border-primary text-primary fs-sm">Primary</span>

<!-- Secondary outline badge -->
<span class="badge border text-nav fs-sm">Secondary</span>

<!-- Success outline badge -->
<span class="badge border border-success text-success fs-sm">Success</span>

<!-- Danger outline badge -->
<span class="badge border border-danger text-danger fs-sm">Danger</span>

<!-- Warning outline badge -->
<span class="badge border border-warning text-warning fs-sm">Warning</span>

<!-- Info outline badge -->
<span class="badge border border-info text-info fs-sm">Info</span>

<!-- Light outline badge -->
<span class="badge border border-white fs-sm">Light</span>

<!-- Dark outline badge -->
<span class="badge border border-dark text-dark fs-sm">Dark</span>

Translucent

Primary Success Danger Warning Info
Light
Dark
<!-- Primary translucent badge -->
<span class="badge bg-primary bg-opacity-10 text-primary fs-sm">Primary</span>

<!-- Success translucent badge -->
<span class="badge bg-success bg-opacity-10 text-success fs-sm">Success</span>

<!-- Danger translucent badge -->
<span class="badge bg-danger bg-opacity-10 text-danger fs-sm">Danger</span>

<!-- Warning translucent badge -->
<span class="badge bg-warning bg-opacity-10 text-warning fs-sm">Warning</span>

<!-- Info translucent badge -->
<span class="badge bg-info bg-opacity-10 text-info fs-sm">Info</span>

<!-- Light translucent badge -->
<span class="badge bg-light bg-opacity-10 fs-sm">Light</span>

<!-- Dark translucent badge -->
<span class="badge bg-dark bg-opacity-10 text-dark fs-sm">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 bg-secondary">New</span></h1>
<h2>Example heading <span class="badge bg-secondary">New</span></h2>
<h3>Example heading <span class="badge bg-secondary">New</span></h3>
<h4>Example heading <span class="badge bg-secondary">New</span></h4>
<h5>Example heading <span class="badge bg-secondary">New</span></h5>
<h6>Example heading <span class="badge bg-secondary">New</span></h6>

Inside button

<!-- Button + badge -->
<button type="button" class="btn btn-primary">
  Notifications <span class="badge bg-light ms-2">4</span>
</button>

<!-- Pill button + badge -->
<button type="button" class="btn btn-dark rounded-pill">
  Profile <span class="badge bg-danger ms-2">9</span>
</button>

<!-- Outline button + badge -->
<button type="button" class="btn btn-outline-secondary">
  Messages <span class="badge bg-info ms-2">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 bg-success">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 bg-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 bg-danger">6</span>
  </a>
</div>