Badge
Badges scale to match the size of the immediate parent element by using relative font sizing and em
units.
Badge heading
Example heading New
Example heading New
Example heading New
Example heading New
Example heading New
Example heading New
Click the use code<h1>Example heading <span class="badge badge-dark">New</span></h1>
<h2>Example heading <span class="badge badge-dark">New</span></h2>
<h3>Example heading <span class="badge badge-dark">New</span></h3>
<h4>Example heading <span class="badge badge-dark">New</span></h4>
<h5>Example heading <span class="badge badge-dark">New</span></h5>
<h6>Example heading <span class="badge badge-dark">New</span></h6>
Pill badges
Primary
Secondary
Success
Danger
Warning
Info
Light
Dark
Click the use code
<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>
Badges overlay
Click the use code
<span class="badge badge-overlay-primary">Primary</span>
<span class="badge badge-overlay-secondary">Secondary</span>
<span class="badge badge-overlay-success">Success</span>
<span class="badge badge-overlay-danger">Danger</span>
<span class="badge badge-overlay-warning">Warning</span>
<span class="badge badge-overlay-info">Info</span>
<span class="badge badge-overlay-light">Light</span>
<span class="badge badge-overlay-dark">Dark</span>
Badge square number
2
8
6
5
8
9
10
4
Click the use code
<span class="badge badge-number badge-primary">2</span>
<span class="badge badge-number badge-secondary">8</span>
<span class="badge badge-number badge-success">6</span>
<span class="badge badge-number badge-danger">5</span>
<span class="badge badge-number badge-warning">8</span>
<span class="badge badge-number badge-info">9</span>
<span class="badge badge-number badge-light">10</span>
<span class="badge badge-number badge-dark">4</span>
Badge button
Click the use code
<button type="button" class="btn btn-primary">
Notifications <span class="badge badge-number badge-light">4</span>
</button>
<button type="button" class="btn btn-secondary">
Notifications <span class="badge badge-number badge-light">4</span>
</button>
<button type="button" class="btn btn-success">
Notifications <span class="badge badge-number badge-light">4</span>
</button>
<button type="button" class="btn btn-danger">
Notifications <span class="badge badge-number badge-light">4</span>
</button>
<button type="button" class="btn btn-warning">
Notifications <span class="badge badge-number badge-light">4</span>
</button>
<button type="button" class="btn btn-info">
Notifications <span class="badge badge-number badge-light">4</span>
</button>
<button type="button" class="btn btn-light">
Notifications <span class="badge badge-number badge-dark">4</span>
</button>
<button type="button" class="btn btn-dark">
Notifications <span class="badge badge-number badge-light">4</span>
</button>
Contextual variations
Primary
Secondary
Success
Danger
Warning
Info
Light
Dark
Click the use code
<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>
Links badge
Primary
Secondary
Success
Danger
Warning
Info
Light
Dark
Click the use code
<a href="#" class="badge badge-primary">Primary</a>
<a href="#" class="badge badge-secondary">Secondary</a>
<a href="#" class="badge badge-success">Success</a>
<a href="#" class="badge badge-danger">Danger</a>
<a href="#" class="badge badge-warning">Warning</a>
<a href="#" class="badge badge-info">Info</a>
<a href="#" class="badge badge-light">Light</a>
<a href="#" class="badge badge-dark">Dark</a>
Badge round number
2
8
6
5
8
9
10
4
Click the use code
<span class="badge badge-pill badge-number badge-primary">2</span>
<span class="badge badge-pill badge-number badge-secondary">8</span>
<span class="badge badge-pill badge-number badge-success">6</span>
<span class="badge badge-pill badge-number badge-danger">5</span>
<span class="badge badge-pill badge-number badge-warning">8</span>
<span class="badge badge-pill badge-number badge-info">9</span>
<span class="badge badge-pill badge-number badge-light">10</span>
<span class="badge badge-pill badge-number badge-dark">4</span>
Officia nam sed possimus repellat et, assumenda corporis velit.