Bootstrap5 List Group
Bootstrap 5 List Group is a component used to display a series of items or content, commonly used for navigation, tags, menus, or other similar list forms.
The list group component provides a flexible way to display ordered or unordered content, allowing customization of each item's style, interaction, and layout.
Basic structure
A Bootstrap 5 list group consists of the following parts:
.list-group: a container that wraps the entire list..list-group-item: each list item, usually containing text, links, or other content..list-group-item-action: makes list items clickable, commonly used to create interactive lists..list-group-item-primaryetc.: used to add different background colors or other styles to list items.
Most basic list groups are unordered.

To create a list group, you can add the .list-group class to the
-
element, and the .list-group-item class to the
- element:
Example
<ul class="list-group"> <li class="list-group-item">First item
li
<li class="list-group-item">Second item
li
<li class="list-group-item">Third item
li
ul
Try it »
Active List Items
Set an active list item by adding the .active class:
Example
<ul class="list-group"> <li class=">list-group-item active
"
Active List Item
li
<li class="list-group-item">Second item
li
<li class="list-group-item">Third item
li
ul
Try it »
Disabled List Items
The .disabled class is used to set a disabled list item:
Example
<ul class="list-group"> <li class=">list-group-item disabled
"
Disabled Item
li
<li class="list-group-item">Second item
li
<li class="list-group-item">Third item
li
ul
Try it »
Linked List Items
To create a linked list item, you can change the
-
with
