We use this element in our themes to present call-to-actions, menus and lists of articles.
Usage
Use .list-group to wrap two or more .list-group-item elements to create a list group.
List groups and their items can contain almost any custom content and HTML.
Badges can be added to .list-group-items and aligned using flex utilities.
States
Active
Add .is-active to a .list-group-item to indicate the current active selection.
Disabled
Add .is-disabled to a .list-group-item to make it appear disabled.
Some elements with .is-disabled will also require custom JavaScript to disable their click events (e.g., links).
Links and buttons
Use <a> or <button> elements with the .list-group-item-action class to create actionable list group items with hover, disabled, and active states.
With <button> elements you can make use of the disabled attribute instead of the .is-disabled class.
Variants
Horizontal
Use .list-group-horizontal 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.
Use the .flex-fill utility class on each list group item to have them occupy the same amount of horizontal space.
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).
Questions or feedback about this article? Let us know
Verify purchase
Provide details about your purchase to unlock this and other code examples throughout the website.