Bootstrap Badge

Documentation and examples for Bootstrap badges, our small count and labelling component.


Badges can be used as part of links or buttons to provide a counter.

  <button type="button" class="btn btn-default">
    <span>Unread messages</span>
    <span class="badge badge-primary">24</span>
  <button type="button" class="btn btn-primary">
    <span class="badge badge-sm badge-circle badge-danger border border-white border-2">4</span>

Badges Gradients

Primary Secondary Info Success Danger Warning
    <span class="badge bg-gradient-primary">Primary</span>
    <span class="badge bg-gradient-secondary">Secondary</span>
    <span class="badge bg-gradient-info">Info</span>
    <span class="badge bg-gradient-success">Success</span>
    <span class="badge bg-gradient-danger">Danger</span>
    <span class="badge bg-gradient-warning">Warning</span>


Use the .badge-md or .badge-lg modifier classes to adjust badge sizes.

Default Medium Large badge
  <span class="badge badge-pill bg-gradient-primary">Default</span>
  <span class="badge badge-pill badge-md bg-gradient-warning">Medium</span>
  <span class="badge badge-pill badge-lg bg-gradient-success">Large badge</span>

Contextual variations PRO

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

Primary Secondary Info Success Danger Warning
  <span class="badge badge-primary">Primary</span>
  <span class="badge badge-secondary">Secondary</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>