йƱ

To create a basic list group, use an <ul> element with class .list-group, and<li> elements with class .list-group-item:

  • First item
  • Second item
  • Third item

йƱ

To create a badge, create a <span> element with class .badge inside the list item:

  • New 12
  • Deleted 5
  • Warnings 3

йƱ

To create a list group with linked items, use <div> instead of <ul> and <a> instead of <li>:

йƱ

Use the .active class to highlight the current item:

йƱ

To disable an item, add the .disabled class:

йƱ

The classes for coloring list-items are: .list-group-item-success, list-group-item-info, list-group-item-warning, and .list-group-item-danger:

  • First item
  • Second item
  • Third item
  • Fourth item

йƱ

Bootstrap provides the classes .list-group-item-heading and .list-group-item-text which can be used as follows: