List Group
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 example
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.
- An item
- A second item
- A third item
- A fourth item
- And a fifth one
<ul outputclass="list-group">
<li>An item</li>
<li>A second item</li>
<li>A third item</li>
<li>A fourth item</li>
<li>And a fifth one</li>
</ul>
Compacted list group
Add @compact="yes"
to reduce the padding of list items
- Item One
- Item Two
- Item Three
<ul outputclass="list-group" compact="yes" >
...
</ul>
Expanded list group
Add @compact="no"
to increase the padding of list items
- Item One
- Item Two
- Item Three
<ul outputclass="list-group" compact="no" >
...
</ul>
Flush
Add an @outputclass="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).
- An item
- A second item
- A third item
- A fourth item
- And a fifth one
<ul outputclass="list-group-flush">
<li>An item</li>
<li>A second item</li>
<li>A third item</li>
<li>A fourth item</li>
<li>And a fifth one</li>
</ul>