How you can add badge to list group in Bootstrap?

To create a basic list group, use an <ul> element with class .list-group, and <li> elements with class .list-group-item:
<ul class="list-group">
<li class="list-group-item">First item</li>
<li class="list-group-item">Second item</li>
<li class="list-group-item">Third item</li>
</ul>
 
To create a basic list group, use an <ul> element with class .list-group, and <li> elements with class .list-group-item:
<ul class="list-group">
<li class="list-group-item">First item</li>
<li class="list-group-item">Second item</li>
<li class="list-group-item">Third item</li>
</ul>
 
You can also add badges to a list group. The badges will automatically be positioned on the right: 12 New; 5 Deleted; 3 Warnings.
 
Back
Top