List group
List groups are a flexible and powerful component for displaying a series of content. Modify and extend them to support just about any content within.
Basic example
- An item
- A second item
- A third item
- A fourth item
- And a fifth one
<ul class="list-group">
<li class="list-group-item">An item</li>
<li class="list-group-item">A second item</li>
</ul>Active items / actions
Flush
Add .list-group-flush to remove some borders and rounded corners.
- An item
- A second item
- A third item
Numbered
Add .list-group-numbered to display numbered list items.
- Cras justo odio
- Dapibus ac facilisis in
- Morbi leo risus
Horizontal
Add .list-group-horizontal to change the layout of list group items from vertical to horizontal across all breakpoints, or with a breakpoint suffix like .list-group-horizontal-sm.
- An item
- A second item
- A third item
Contextual classes
Custom content
Light variant
Use .list-group-light for a borderless item list with rounded hover states (handy in sidebars).