Badges

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

Contextual variations

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

Primary Info Success Danger Warning Default Neutral
<span class="badge badge-primary">Primary</span>
<span class="badge badge-info">Info</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-default">Default</span>
<span class="badge badge-neutral">Neutral</span>

Using the contextual .badge-* classes on an <a> element quickly provide actionable badges with hover and focus states.

<a href="#" class="badge badge-primary">Primary</a>
<a href="#" class="badge badge-info">Info</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-default">Default</a>
<a href="#" class="badge badge-neutral">Neutral</a>