LIST GROUPS
BASIC EXAMPLES The most basic list group is simply an unordered list with list items, and the proper classes.
- Cras justo odio
- Dapibus ac facilisis in
- Morbi leo risus
- Porta ac consectetur ac
- Vestibulum at eros
BADGES Add the badges component to any list group item and it will automatically be positioned on the right.
- Cras justo odio 14 new
- Dapibus ac facilisis in 99 read
- Morbi leo risus 99+
- Porta ac consectetur ac 21
- Vestibulum at eros 18
LINKED ITEMS
Linkify list group items by using anchor tags instead of list items (that also means a parent <div>
instead of an <ul>
). No need for individual parents around each element.
BUTTON ITEMS
List group items may be buttons instead of list items (that also means a parent <div>
instead of an <ul>
). No need for individual parents around each element. Don't use the standard .btn
classes here.
DISABLED ITEMS
Add .disabled
to a .list-group-item
to gray it out to appear disabled.
CONTEXTUAL CLASSES
Use contextual classes to style list items, default or linked. Also includes .active
state.
- Dapibus ac facilisis in
- Cras sit amet nibh libero
- Porta ac consectetur ac
- Vestibulum at eros
CONTEXTUAL CLASSES WITH LINKED ITEMS
Use contextual classes to style list items, default or linked. Also includes .active
state.
COLORFUL ITEMS WITH MATERIAL DESIGN COLORS
You can use material design colors which examples are .list-group-bg-pink, .list-group-bg-cyan
class
- Dapibus ac facilisis in
- Cras sit amet nibh libero
- Porta ac consectetur ac
- Vestibulum at eros
CUSTOM CONTENT Add nearly any HTML within, even for linked list groups like the one below.
CONTEXTUAL CLASSES WITH LINKED ITEMS
Use contextual classes to style list items, default or linked. Also includes .active
state.
List group item heading
Lorem ipsum dolor sit amet, ut duo atqui exerci dicunt, ius impedit mediocritatem an. Pri ut tation electram moderatius. Per te suavitate democritum. Duis nemore probatus ne quo, ad liber essent aliquid pro. Et eos nusquam accumsan, vide mentitum fabellas ne est, eu munere gubergren sadipscing mel.
List group item heading
Lorem ipsum dolor sit amet, ut duo atqui exerci dicunt, ius impedit mediocritatem an. Pri ut tation electram moderatius. Per te suavitate democritum. Duis nemore probatus ne quo, ad liber essent aliquid pro. Et eos nusquam accumsan, vide mentitum fabellas ne est, eu munere gubergren sadipscing mel.
List group item heading
Lorem ipsum dolor sit amet, ut duo atqui exerci dicunt, ius impedit mediocritatem an. Pri ut tation electram moderatius. Per te suavitate democritum. Duis nemore probatus ne quo, ad liber essent aliquid pro. Et eos nusquam accumsan, vide mentitum fabellas ne est, eu munere gubergren sadipscing mel.