1
0
Fork 0
mirror of https://github.com/twbs/bootstrap.git synced 2022-11-09 12:25:43 -05:00
twbs--bootstrap/docs/components/badges.md
2015-05-29 01:58:52 -07:00

1.6 KiB

layout title
page Badges

Badges are indicators for new or unread activity and include support for the active states of our navigation components, links, buttons, and more.

Contents

  • Will be replaced with the ToC, excluding the "Contents" header {:toc}

{% example html %} Inbox 42 {% endexample %}

Self collapsing

When there are no new or unread items, badges will simply collapse (via CSS's :empty selector) provided no content exists within.

Active nav

Built-in styles are included for placing badges in active states in pill navigations.

{% example html %}

{% endexample %}

Buttons

Like active nav links, badges in Bootstrap buttons automatically restyle to better blend into the background.

{% example html %} {% endexample %}