Badges

Small count and labeling component.

Bootstrap docs

Contextual variations

PrimaryAccentSecondarySuccessDangerWarningInfo
Light
Dark
<!-- Primary badge -->
<span class="badge bg-primary">Primary</span>

<!-- Accent badge -->
<span class="badge bg-accent">Accent</span>

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

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

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

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

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

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

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

Translucent badges

PrimaryAccentSuccessDangerWarningInfo
Light
Dark
<!-- Primary badge -->
<span class="badge bg-faded-primary">Primary</span>

<!-- Accent badge -->
<span class="badge bg-faded-accent">Accent</span>

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

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

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

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

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

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

Pill badges

PrimaryAccentSecondarySuccessDangerWarningInfo
Light
Dark
<!-- Primary pill badge -->
<span class="badge rounded-pill bg-primary">Primary</span>

<!-- Accent pill badge -->
<span class="badge rounded-pill bg-accent">Accent</span>

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

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

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

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

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

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

<!-- Dark pill badge -->
<span class="badge rounded-pill bg-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 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-1">4</span>
</button>

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

<!-- Outline button + badge -->
<button type="button" class="btn btn-outline-secondary">
Messages <span class="badge bg-success ms-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 rounded-pill bg-info">4</span>
</a>
<a href="#" class="list-group-item list-group-item-action d-flex justify-content-between align-items-center">
Orders
<span class="badge rounded-pill bg-warning">2</span>
</a>
<a href="#" class="list-group-item list-group-item-action d-flex justify-content-between align-items-center">
Favorites
<span class="badge rounded-pill bg-danger">6</span>
</a>
</div
Top