Vue Bootstrap List Group
Vue List Group - Bootstrap 4 & Material Design
Note: We are transitioning MDB4 to a legacy version and focusing on developing MDB5.
While we'll continue to support for the transition period, we encourage you to migrate to
MDB5. We're offering a 50% discount on MDB5 PRO to help with your transition,
enabling you to leverage the full potential of the latest version. You can find more information here.
get 50% discount on MDB5 PRO
Vue Bootstrap list group is a flexible component which displays not only simple list of elements but complex custom content.
Basic example
The most basic list group is simply an unordered list with list items and the proper classes. Build upon it with the options that follow, or your own CSS as needed.
- Cras justo odio
- Dapibus ac facilisis in
- Morbi leo risus
- Porta ac consectetur ac
- Vestibulum at eros
Labels
Add labels to any list group item to show unread counts, activity, etc.
- Cras justo odio 14
- Dapibus ac facilisis in 2
- Morbi leo risus 1
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.
Disabled item
Add disabled
to a <mdb-list-group-item>
to gray it out to appear
disabled.
Contextual classes
Use color
property to style list items, default or linked. Also includes .active state
.
Using one of the colors listed below will style the entire list item - but you can also change just the background property by passing the color name as an argument: color="light-blue lighten-3"
- Dapibus ac facilisis in
- A simple primary list group item
- A simple secondary list group item
- A simple success list group item
- A simple danger list group item
- A simple warning list group item
- A simple info list group item
- A simple light list group item
- A simple dark list group item
Custom content
Add nearly any HTML within, even for linked list groups like the one below.
List group item heading
3 days agoDonec id elit non mi porta gravida at eget metus. Maecenas sed diam eget risus varius blandit.
Donec id elit non mi porta.List group item heading
3 days agoDonec id elit non mi porta gravida at eget metus. Maecenas sed diam eget risus varius blandit.
Donec id elit non mi porta.List group item heading
3 days agoDonec id elit non mi porta gravida at eget metus. Maecenas sed diam eget risus varius blandit.
Donec id elit non mi porta.Horizontal
Add horizontal
property to change the layout of list group items from vertical to horizontal across
all
breakpoints. Alternatively, add one of the following properties: sm md lg xl
to make a
list group
horizontal starting at that breakpoint’s min-width.
- Cras justo odio
- Dapibus ac facilisis in
- Morbi leo risus
- Cras justo odio
- Dapibus ac facilisis in
- Morbi leo risus
- Cras justo odio
- Dapibus ac facilisis in
- Morbi leo risus
- Cras justo odio
- Dapibus ac facilisis in
- Morbi leo risus
- Cras justo odio
- Dapibus ac facilisis in
- Morbi leo risus
Flush
You can add flush
property to remove some borders and rounded corners to render list group
items edge-to-edge in a parent container (e.g., cards).
- Cras justo odio
- Dapibus ac facilisis in
- Morbi leo risus
- Porta ac consectetur ac
- Vestibulum at eros
List with icons
Use icons to make your list group more creative and looks nice.
List icon with active items
- Cras justo odio
- Dapibus ac facilisis in
- Morbi leo risus
- Porta ac consectetur ac
- Vestibulum at eros
Social icon MDB Pro component
Icon list with square icons
Photos
Work
Vacation
List icons with rounded icons
Photos
Work
Vacation
Vue List Group - API
In this section you will find advanced information about the List Group component. You will learn which modules are required in this component, what are the possibilities of configuring the component, and what events and methods you can use in working with it.
Import statement
API Reference: Properties - List Group
Name | Type | Default | Description | Example |
---|---|---|---|---|
tag |
String | 'ul' |
Changes list group's wrapper tag | <mdb-list-group tag="div" /> |
horizontal |
Boolean | false |
Changes list group's display to horizontal at all breakpoints. | <mdb-list-group horizontal /> |
sm |
Boolean | false |
Changes list group's display to horizontal at the 'sm' breakpoint. | <mdb-list-group horizontal sm /> |
md |
Boolean | false |
Changes list group's display to horizontal at the 'md' breakpoint. | <mdb-list-group horizontal md /> |
lg |
Boolean | false |
Changes list group's display to horizontal at the 'lg' breakpoint. | <mdb-list-group horizontal lg /> |
xl |
Boolean | false |
Changes list group's display to horizontal at the 'xl' breakpoint. | <mdb-list-group horizontal xl /> |
flush |
Boolean | false |
Removes list's borders | <mdb-list-group flush /> |
API Reference: Properties - List Group Item
Name | Type | Default | Description | Example |
---|---|---|---|---|
tag |
String | 'li' |
Changes list group item's wrapper tag | <mdb-list-group-item tag="div" /> |
action |
Boolean | false |
Changes list group item's styling to action | <mdb-list-group-item action /> |
disabled |
Boolean | false |
Disables the element | <mdb-list-group-item disabled /> |
color |
String |
|
Changes the list item's style according to the passed value (primary, warning, danger, secondary, success, light, dark) or background to the given color (primary-color, light-blue, pink, etc) | <mdb-list-group-item color="danger" /> |
justifyContentBetween |
Boolean | true |
Changes the css propertyjustify-content to between value |
<mdb-list-group-item :justify-content-between="false" /> |
alignItemsCenter |
Boolean | true |
Changes the css propertyalign-items to center value |
<mdb-list-group-item :align-items-center="false" /> |
icon |
String |
|
Sets the list group item's icon | <mdb-list-group-item icon="paper-plane" /> |
social |
Boolean | false |
Changes icon styling to social | <mdb-list-group-item icon="paper-plane" social /> |
circle |
Boolean | false |
Changes social icon's shape to circle | <mdb-list-group-item icon="paper-plane" social circle /> |
iconColor |
String | 'default-color' |
Changes social icon's background to the given color | <mdb-list-group-item icon="paper-plane" social iconColor="pink" /> |
far |
Boolean | false |
Changes icon's style to regular | <mdb-list-group-item icon="..." far /> |
regular |
Boolean | false |
Changes icon's style to regular | <mdb-list-group-item icon="..." regular /> |
light |
Boolean | false |
Changes icon's style to light | <mdb-list-group-item icon="..." light /> |
fal |
Boolean | false |
Changes icon's style to light | <mdb-list-group-item icon="..." fal /> |
fab |
Boolean | false |
Changes icon's style to brands | <mdb-list-group-item icon="..." fab /> |
brands |
Boolean | false |
Changes icon's style to brands | <mdb-list-group-item icon="..." brands /> |
fad |
Boolean | false |
Changes icon's style to duotone | <mdb-list-group-item icon="..." fad /> |
duotone |
Boolean | false |
Changes icon's style to duotone | <mdb-list-group-item icon="..." duotone /> |