List group component
List group is a flexible and powerful component for displaying not only simple lists of elements, but complex ones with custom content. The most basic list group is simply an unordered list with list items, and the proper classes. To use linked list group items, add anchor tags instead of list items (that also means a parent <div>
instead of an <ul>
). If list group is used in sidebar, card or any other container with borders, add .list-group-flush
class to list group container to remove vertical borders.
- Sheared coasted so concurrent
- Goodness instead gull vulture
- Relentless ouch essentially
- Devilish yellow unsafe jerkily
- Sheared coasted so concurrent
- Goodness instead gull vulture
- Relentless ouch essentially
- Devilish yellow unsafe jerkily
- Sheared coasted so concurrent
- Goodness instead gull vulture
- Relentless ouch essentially
- Devilish yellow unsafe jerkily
- List header
- Sheared coasted so concurrent
- Goodness instead gull vulture
- Relentless ouch essentially
- Another list header
- Devilish yellow unsafe jerkily
- List header
- Sheared coasted so concurrent
- Goodness instead gull vulture
- Relentless ouch essentially
- Devilish yellow unsafe jerkily
- Sheared coasted so concurrent
- Goodness instead gull vulture
- Relentless ouch essentially
- Devilish yellow unsafe jerkily
- List header
- Sheared coasted so concurrent
- Goodness instead gull vulture
- Relentless ouch essentially
- Devilish yellow unsafe jerkily
- List header
- Sheared coasted so concurrent
- Goodness instead gull vulture
- Relentless ouch essentially
- Devilish yellow unsafe jerkily
div
element
Contextual classes
Example of list items contextual
classes. Depending on the context, you can highlight a specific list group item using available contextual classes: primary
, secondary
, danger
, success
, warning
and info
. To use, add .list-group-item-*
class to the base .list-group-item
class. Also you can add .active
class to highlight active list item. Custom colors are also supported.
- Primary context
- But I must explain to you how all this mistaken
- Secondary context
- I will give you a complete account of the system
- Success context
- Nor again is there anyone who loves or pursues
- Danger context
- But who has any right to find fault with a man
- Warning context
- On the other hand, we denounce with righteous
- Info context
- These cases are perfectly simple to distinguish
List group elements
Examples of group list elements
. You can add badges, badge pills and icons to any list group item. Depending on a placement of the component, it will appear before
, after
or will be positioned on the right
of the list item. To use right positioned element, simply add .ml-auto
helper class to group item. Dropdown menus are also supported.
Icons in list group
- Group header
- And hello exotic staunch
- That and well ecstatically
- Sheared coasted so concurrent
- Into darn intrepid belated
Badges in list group
- Group header 37
- 93And hello exotic staunch
- 73That and well ecstatically
- Sheared coasted so concurrent New
- Into darn intrepid belated Resolved
Icons in linked list group
Badges in linked list group
Custom content
Simple example of a custom
content in the list group component. You can add nearly any HTML markup, add images, custom elements and colors to the list group item. Example below demonstrates a simple content with icons, titles, right annotations and text body. Also some empty list items for extra spacing. For proper content styling, flexbox utilities must be used.
Custom content
-
Leapt so heedlessly
2 days ago -
Black where yikes
3 days ago -
Gecko preparatory
4 days ago -
Parrot slid wow
5 days ago
Custom linked content