Bootstrap 5 Basic
Bootstrap 5 Flexbox
List groups in Bootstrap 5 provide a flexible and customizable way to display a series of content, such as navigation links or informational items
The <ul>
element with the .list-group
class. Then add the .list-group-item
to each <li>
element and a .list-group-link
class to each link inside <li>
Try it yourself
Use .active
to highlight an item and .disabled
to disable it.
Try it yourself
Use a
elements for clickable list items.
Try it yourself
Use .list-group-flush
for a list group with no borders and a seamless look.
Try it yourself
Use .list-group-numbered
elements for numbered list items.
Try it yourself
Use .list-group-horizontal
to align items horizontally. Combine with responsive breakpoints for different layouts.
Try it yourself
Add colors using contextual classes like .list-group-item-primary
, .list-group-item-secondary
, etc.
Try it yourself