Badges

Documentation and examples for badges, our small count and labeling component.

On this page

Examples

Badges scale to match the size of the immediate parent element by using relative font sizing and em units.

Headings

Example heading New

Example heading New

Example heading New

Example heading New

Example heading New
Example heading New
vue

Buttons

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

vue

Positioned

Use utilities to modify a Badge and position it in the corner of a link or button.

vue

You can also modify the Badge component with a few more utilities without a count for a more generic indicator.

vue

Background colors

Use our background utility classes to quickly change the appearance of a badge.

Please note that when using Bootstrap's default background-color="light", you'll likely need a text color utility like text-color="dark" for proper styling.

This is because background utilities do not set anything but background-color.

Primary Secondary Success Danger Warning Info Light Dark
vue

Pill badges

Use the rounded="pill" utility, class to make badges more rounded with a larger border-radius.

Primary Secondary Success Danger Warning Info Light Dark
vue

Extend

Subtle theme colors

primary-subtlesecondary-subtlesuccess-subtledanger-subtlewarning-subtleinfo-subtlelight-subtledark-subtle

All colors

blueblue-100blue-200blue-300blue-400blue-500blue-600blue-700blue-800blue-900
indigoindigo-100indigo-200indigo-300indigo-400indigo-500indigo-600indigo-700indigo-800indigo-900
purplepurple-100purple-200purple-300purple-400purple-500purple-600purple-700purple-800purple-900
pinkpink-100pink-200pink-300pink-400pink-500pink-600pink-700pink-800pink-900
redred-100red-200red-300red-400red-500red-600red-700red-800red-900
orangeorange-100orange-200orange-300orange-400orange-500orange-600orange-700orange-800orange-900
yellowyellow-100yellow-200yellow-300yellow-400yellow-500yellow-600yellow-700yellow-800yellow-900
greengreen-100green-200green-300green-400green-500green-600green-700green-800green-900
tealteal-100teal-200teal-300teal-400teal-500teal-600teal-700teal-800teal-900
cyancyan-100cyan-200cyan-300cyan-400cyan-500cyan-600cyan-700cyan-800cyan-900
On this page