List Group

List Style

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 List

The most basic list group is an unordered list with list items and the proper classes. Build upon it with the options that follow, or with your own CSS as needed.

  • 1. Cras justo odio
  • 2. Dapibus ac facilisis in
  • 3. Morbi leo risus
  • 4. Porta ac consectetur ac
  • 5. Vestibulum at eros
Disabled items

Add .disabled to a .list-group-item to make it appear disabled. Note that some elements with .disabled will also require custom JavaScript to fully disable their click events (e.g., links).

  • 1. Cras justo odio
  • 2. Dapibus ac facilisis in
  • 3. Morbi leo risus
  • 4. Porta ac consectetur ac
  • 5. Vestibulum at eros
Active items

Add .active to a .list-group-item to indicate the current active selection.

  • 1. Cras justo odio
  • 2. Dapibus ac facilisis in
  • 3. Morbi leo risus
  • 4. Porta ac consectetur ac
  • 5. Vestibulum at eros
Links and buttons

Use <a>s or <button>s to create actionable list group items with hover, disabled, and active states by adding .list-group-item-action.

Flush

Add .list-group-flush to remove some borders and rounded corners to render list group items edge-to-edge in a parent container (e.g., cards).

  • 1. Cras justo odio
  • 2. Dapibus ac facilisis in
  • 3. Morbi leo risus
  • 4. Porta ac consectetur ac
  • 5. Vestibulum at eros
Contextual classes

Use contextual classes to style list items with a stateful background and color.

  • Dapibus ac facilisis in
  • A simple primary list group item
  • A simple secondary list group item
  • A simple success list group item
  • A simple danger list group item
  • A simple warning list group item
  • A simple info list group item
With Badges

Add badges to any list group item to show unread counts, activity, and more with the help of some utilities.

  • Cras justo odio 14
  • Dapibus ac facilisis in 2
  • Morbi leo risus 1