Badges

Documentation and examples for badges, our small count and labeling component. Read the Official Bootstrap Documentation for a full list of instructions and other options.


Contextual Variations

Add any of the below mentioned modifier classes to change the appearance of a badge.

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>

Pill Badges

Use the .badge-pill modifier class to make badges more rounded.

Primary Secondary Success Danger Warning Info Light Dark
<span class="badge badge-pill badge-primary">...</span>

Link Badges

Using the contextual badge classes on an element quickly provide actionable badges with hover and focus states.

<a href="#" class="badge badge-primary">Primary</a>