Add any of the below mentioned modifier classes to change the appearance of a badge.
To use, add .badge-primary
to the base .badge
class
Primary
To use, add .badge-secondary
to the base .badge
class
Secondary
To use, add .badge-success
to the base .badge
class
Success
To use, add .badge-danger
to the base .badge
class
Success
To use, add .badge-warning
to the base .badge
class
Warning
To use, add .badge-info
to the base .badge
class
Info
To use, add .badge-light
to the base .badge
class
Light
To use, add .badge-dark
to the base .badge
class
Dark
Variations with links, dropdowns, and icons.
Use the .badge-pill
modifier class to make badges more rounded (with a larger border-radius
and additional horizontal padding
).
Badge Pill
To use, add .r-0
to the base .badge
class.
Without Rounds
Example Badge with Dropdown.
Example below
To use, add .r-30
to the base .badge
class
Styles for badges as outline.
To use, add .badge-outline-primary
to the base .badge
class.
Primary
To use, add .badge-outline-secondary
to the base .badge
class.
Secondary
To use, add .badge-outline-success
to the base .badge
class.
Success
To use, add .badge-outline-danger
to the base .badge
class.
Success
To use, add .badge-outline-warning
to the base .badge
class.
Warning
To use, add .badge-outline-info
to the base .badge
class
Info
To use, add .badge-outline-light
to the base .badge
class.
Light
To use, add .badge-outline-dark
to the base .badge
class.
Dark