Bootstrap 5 List group Links and buttons Last Updated : 26 Jul, 2024 Comments Improve Suggest changes Like Article Like Report Bootstrap 5 provides the List Group Links and Buttons items feature in which items are actionable and stored in form of a list. List groups are a flexible and powerful component for displaying a series of content. The List Group Links and Buttons items feature is used to indicate the item is currently actionable which means it can be a link or button. The Link or button can be made active or disabled.List Group Links and Buttons Classes:list-group: This class is used to create the Bootstrap list.list-group-item: This class is used to indicate and add the items to the list.list-group-item-action: This class is used to specify the item is set to in an action.active: This class is used to make items of the list appear active.disabled: This class is used to make items of the list appear disabled.Syntax:// Anchor tag to specify link items<div class="list-group"> <a href="..." class="list-group-item list-group-item-action active">...</a> ...</div>// Button tag to specify button items<div class="list-group"> <button type="button" class="list-group-item l ist-group-item-action active">...</button> ...</div>Note: Instead of using the".disabled" class with <button>, you may use the disabled attribute, the disabled attribute is not supported by <a>.Example 1: The following code demonstrates the List Group Link items using the List Group Links and Buttons Item properties. HTML <!DOCTYPE html> <html> <head> <title>List Active Item</title> <link href= "https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity= "sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous"> </head> <body> <h1 class="text-success"> GeeksforGeeks </h1> <h2>Bootstrap 5 List Group Links</h2> <div class="list-group"> <a href="https://www.geeksforgeeks.org/" class="list-group-item list-group-item-action active"> Active Link</a> <a href="https://www.geeksforgeeks.org/" class="list-group-item list-group-item-action"> GeeksforGeeks</a> <a href="https://www.geeksforgeeks.org/" class="list-group-item list-group-item-action disabled"> Hello</a> </div> </body> </html> Output:Example 2: The following code demonstrates the List Group Button items using the List Group Links and Buttons Item properties. HTML <!DOCTYPE html> <html> <head> <title>List Active Item</title> <link href= "https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity= "sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous"> </head> <body> <h1 class="text-success"> GeeksforGeeks </h1> <h2>Bootstrap 5 List group buttons</h2> <div class="list-group"> <button type="button" class="list-group-item list-group-item-action active">Active button</button> <button type="button" class="list-group-item list-group-item-action">GeeksforGeeks</button> <button type="button" class="list-group-item list-group-item-action" disabled> Disabled Button</button> </div> </body> </html> Output:List Group buttonsReference: https://getbootstrap.com/docs/5.0/components/list-group/#links-and-buttons Comment More infoAdvertise with us Next Article Bootstrap 5 List group Flush A anurag10202 Follow Improve Article Tags : Technical Scripter Web Technologies Bootstrap Technical Scripter 2022 Bootstrap-5 +1 More Similar Reads Bootstrap 5 List group Active items Bootstrap 5 provides the List Group Active feature in which items are stored in form of a list. List groups are a flexible and powerful component for displaying a series of content. The List Group Active feature is used to indicate the currently active selection. List group Active items classes: .ac 2 min read Bootstrap 5 List group Disabled items Bootstrap 5 provides the List Group disabled items feature in which items are stored in form of a list. List groups are a flexible and powerful component for displaying a series of content. The List Group Disabled items feature is used to indicate the item is currently disabled. List Group Disabled 2 min read Bootstrap 5 List group Links and buttons Bootstrap 5 provides the List Group Links and Buttons items feature in which items are actionable and stored in form of a list. List groups are a flexible and powerful component for displaying a series of content. The List Group Links and Buttons items feature is used to indicate the item is current 2 min read Bootstrap 5 List group Flush Bootstrap 5 provides the List Group Flush feature in which items are stored in the form of a list. List groups are a flexible and powerful component for displaying a series of content. The List Group Flush feature is used to remove borders and rounded corners around the items on the list. List group 2 min read Bootstrap 5 List group Numbered Bootstrap 5 List Group Numbered is one of the capabilities offered by List Group in Bootstrap 5, which is used to keep items in the form of a list and display them sequentially through the use of numbers. List Group Numbered Classes: list-group-item: This class is used to indicate and add the items 2 min read Bootstrap 5 List group Horizontal Bootstrap 5 List group Horizontal facilitates to modification & alignment of the structure of the list group items from vertical to horizontal, across all breakpoints, by implementing the .list-group-horizontal class. In order to create a list group horizontal that starts with the min-width of t 2 min read Bootstrap 5 List group Contextual classes Bootstrap 5 List group Contextual classes are used to style list-group-items with different backgrounds and colors. Bootstrap 5 List group Contextual Used Classes: list-group-item-primary: For blue color styling of the list itemlist-group-item-success: For green color styling of the list itemlist-gr 2 min read Bootstrap 5 List group with badges Bootstrap 5 List group with badges can be used to add badges to the list group item to indicate the count of objects. List group With badges Classes: No special classes are used in the List group With badges. You can customize the list using .badge classes and style them with flex. Bootstrap 5 List 2 min read Bootstrap 5 List group Custom content Bootstrap 5 List Group Custom content allows us to use HTML inside the list, here, the term "Custom Content" refers to HTML, therefore any HTML elements can be used inside, including anchor tags, paragraph tags, divs, photos, and many more.Bootstrap 5 List Group Custom content Classes: There is no p 2 min read Bootstrap 5 List group Checkboxes and radios Bootstrap 5 List group Checkboxes and radios use .list-group and .list-group-item classes to create a list of items. The .list-group class is used with <ul> element and the .list-group-item is used with <li> element. Then create the checkbox and radios in the input element using the type 2 min read Like