# Bootstrap Badge

documentation free 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.

Copy

      <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-sm badge-circle badge-danger border border-white border-2">4</span>
      </button>

## Badges Gradients

Primary Secondary Info Success Danger Warning
Copy

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

## Sizes

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

Default Medium Large badge
Copy

      <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
Copy

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