Badges Small and adaptive tag for adding context to just about any content.
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.Learn more about this component on bootstrap's official documentation.
Badge scaling
em
units
Example heading New
Example heading New
Example heading New
Example heading New
Example heading New
Example heading New
Badge in buttons
em
units
Regular buttons
Outline buttons
Status badges
.status
class. Comes with two badge sizes .status-sm
and the default .status
. Comes in 3 colors, .status-danger
, .status-warning
, and .status-success
Contextual variations
Pill badges
.badge-pill
modifier class to make badges more rounded (with a larger border-radius and additional horizontal padding).
Links example
.badge-*
class on a hyperlink element to convert it to actionable badges with hover and focus states
Nested badge
Badge header
.badge-icon
with a combination of other utility classes to create a link badge. This class will auto turncate overflow giving you a nice clean look without any hassle