Documentation and examples for badges, our small count and labeling component.

Bootstrap 4 documentation

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

Primary Secondary Tertiary Success Danger Warning Info Light Dark
<span class="badge badge-primary text-uppercase">Primary</span>
<span class="badge badge-secondary text-uppercase">Secondary</span>
<span class="badge badge-tertiary text-uppercase">Tertiary</span>
<span class="badge badge-success text-uppercase">Success</span>
<span class="badge badge-danger text-uppercase">Danger</span>
<span class="badge badge-warning text-uppercase">Warning</span>
<span class="badge badge-info text-uppercase">Info</span>
<span class="badge badge-light text-uppercase">Light</span>
<span class="badge badge-dark text-uppercase">Dark</span>
Conveying meaning to assistive technologies

Using color to add meaning only provides a visual indication, which will not be conveyed to users of assistive technologies – such as screen readers. Ensure that information denoted by the color is either obvious from the content itself (e.g. the visible text), or is included through alternative means, such as additional text hidden with the .sr-only class.