# Bootstrap Badge

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

## Example

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>
      <button type="button" class="btn btn-primary">
        <span>Notifications</span>
        <span class="badge badge-md badge-circle badge-floating badge-danger border-white">4</span>
      </button>

## Badges Gradients

Primary Secondary Info Success Danger Warning Light Dark

        <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>
        <span class="badge bg-gradient-light">Light</span>
        <span class="badge bg-gradient-dark">Dark</span>

## Sizes

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 Light Dark

      <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>
      <span class="badge badge-light">Light</span>
      <span class="badge badge-dark">Dark</span>