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
- List header
- Relentless ouch essentially
- Devilish yellow unsafe jerkily
div
element
Horizontal direction
List group component supports 2 directions - vertical and horizontal. Simply add .list-group-horizontal
class to change the layout of list group items from vertical to horizontal across all breakpoints. Alternatively, choose a responsive variant .list-group-horizontal-{sm|md|lg|xl}
to make a list group horizontal starting at that breakpoint’s min-width
.
- Sheared coasted
- Goodness instead
- Relentless ouch
- Devilish yellow
- Sheared coasted
- Goodness instead
- Relentless ouch
- Devilish yellow
- Sheared coasted
- Goodness instead
- Relentless ouch
- Devilish yellow
div
element
Colors
Example of list items with contextual and custom classes. Depending on the context, you can highlight a specific list group item using available contextual classes: primary
, secondary
, danger
, success
, warning
and info
. Custom colors available as well: dark
, pink
, purple
, indigo
, teal
and yellow
. To use, add .list-group-item-[color]
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
- Dark color
- But I must explain to you how all this mistaken
- Pink color
- I will give you a complete account of the system
- Purple color
- Nor again is there anyone who loves or pursues
- Indigo color
- But who has any right to find fault with a man
- Teal color
- On the other hand, we denounce with righteous
- Yellow color
- 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
- 93 And hello exotic staunch
- 73 That 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