List group
Vue Bootstrap 5 List group component
Responsive Vue List group built with the latest Bootstrap 5. Multiple code examples, a user-friendly guide, extensive API, and customization tools.
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.
Note: Read the API tab to find all available options and advanced customization
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
<template>
<MDBListGroup light>
<MDBListGroupItem>An item</MDBListGroupItem>
<MDBListGroupItem>A second item</MDBListGroupItem>
<MDBListGroupItem>A third item</MDBListGroupItem>
<MDBListGroupItem>A fourth item</MDBListGroupItem>
<MDBListGroupItem>And a fifth one</MDBListGroupItem>
</MDBListGroup>
</template>
<script>
import { MDBListGroup, MDBListGroupItem } from "mdb-vue-ui-kit";
export default {
components: {
MDBListGroup,
MDBListGroupItem
}
};
</script>
<script setup lang="ts">
import { MDBListGroup, MDBListGroupItem } from "mdb-vue-ui-kit";
</script>
Small
If you need a more compact list, add small
prop to a MDBListGroup
which will reduce the padding of the items in the list.
- An item
- A second item
- A third item
- A fourth item
- And a fifth one
<template>
<MDBListGroup light small>
<MDBListGroupItem>An item</MDBListGroupItem>
<MDBListGroupItem>A second item</MDBListGroupItem>
<MDBListGroupItem>A third item</MDBListGroupItem>
<MDBListGroupItem>A fourth item</MDBListGroupItem>
<MDBListGroupItem>And a fifth one</MDBListGroupItem>
</MDBListGroup>
</template>
<script>
import { MDBListGroup, MDBListGroupItem } from "mdb-vue-ui-kit";
export default {
components: {
MDBListGroup,
MDBListGroupItem
}
};
</script>
<script setup lang="ts">
import { MDBListGroup, MDBListGroupItem } from "mdb-vue-ui-kit";
</script>
Active items
Add active
prop to a MDBListGroupItem
to indicate the current active
selection. You also need to add extra spacing
prop to MDBListGroupItem
to keep the text from sticking to the edge of the list and noBorder
prop to a MDBListGroup
remove borders between items.
- An active item
- A second item
- A third item
- A fourth item
- And a fifth one
<template>
<MDBListGroup light style="min-width: 22rem">
<MDBListGroupItem active noBorder spacing>
An active item
</MDBListGroupItem>
<MDBListGroupItem noBorder spacing>
A second item
</MDBListGroupItem>
<MDBListGroupItem noBorder spacing>
A third item
</MDBListGroupItem>
<MDBListGroupItem noBorder spacing>
A fourth item
</MDBListGroupItem>
<MDBListGroupItem noBorder spacing>
And a fifth one
</MDBListGroupItem>
</MDBListGroup>
</template>
<script>
import { MDBListGroup, MDBListGroupItem } from "mdb-vue-ui-kit";
export default {
components: {
MDBListGroup,
MDBListGroupItem
}
};
</script>
<script setup lang="ts">
import { MDBListGroup, MDBListGroupItem } from "mdb-vue-ui-kit";
</script>
Disabled items
Add disabled
to a MDBListGroupItem
to make it
appear disabled. Note that some elements with disabled
will also require
custom JavaScript to fully disable their click events (e.g., links).
- An disabled item
- A second item
- A third item
- A fourth item
- And a fifth one
<template>
<MDBListGroup light>
<MDBListGroupItem disabled>An disabled item</MDBListGroupItem>
<MDBListGroupItem>A second item</MDBListGroupItem>
<MDBListGroupItem>A third item</MDBListGroupItem>
<MDBListGroupItem>A fourth item</MDBListGroupItem>
<MDBListGroupItem>And a fifth one</MDBListGroupItem>
</MDBListGroup>
</template>
<script>
import { MDBListGroup, MDBListGroupItem } from "mdb-vue-ui-kit";
export default {
components: {
MDBListGroup,
MDBListGroupItem
}
};
</script>
<script setup lang="ts">
import { MDBListGroup, MDBListGroupItem } from "mdb-vue-ui-kit";
</script>
No borders
Add noBorder
props to the items to remove all the borders.
- An item
- A second item
- A third item
- A fourth item
- And a fifth one
<template>
<MDBListGroup light>
<MDBListGroupItem noBorder>An item</MDBListGroupItem>
<MDBListGroupItem noBorder>A second item</MDBListGroupItem>
<MDBListGroupItem noBorder>A third item</MDBListGroupItem>
<MDBListGroupItem noBorder>A fourth item</MDBListGroupItem>
<MDBListGroupItem noBorder>And a fifth one</MDBListGroupItem>
</MDBListGroup>
</template>
<script>
import { MDBListGroup, MDBListGroupItem } from "mdb-vue-ui-kit";
export default {
components: {
MDBListGroup,
MDBListGroupItem
}
};
</script>
<script setup lang="ts">
import { MDBListGroup, MDBListGroupItem } from "mdb-vue-ui-kit";
</script>
Numbered
Add the numbered
property to opt into numbered list group items. Numbers are generated
via CSS (as opposed to a <ol>
s default browser styling) for better
placement inside list group items and to allow for better customization.
Numbers are generated by counter-reset
on the <ol>
, and then
styled and placed with a ::before
psuedo-element on the
<li>
with counter-increment
and content
.
- A list item
- A list item
- A list item
<MDBListGroup light numbered style="min-width: 22rem">
<MDBListGroupItem>A list item</MDBListGroupItem>
<MDBListGroupItem>A list item</MDBListGroupItem>
<MDBListGroupItem>A list item</MDBListGroupItem>
</MDBListGroup>
<script>
import { MDBListGroup, MDBListGroupItem } from "mdb-vue-ui-kit";
export default {
components: {
MDBListGroup,
MDBListGroupItem
}
};
</script>
<script setup lang="ts">
import { MDBListGroup, MDBListGroupItem } from "mdb-vue-ui-kit";
</script>
These work great with custom content as well.
-
SubheadingContent for list item
-
SubheadingContent for list item
-
SubheadingContent for list item
<MDBListGroup light numbered style="min-width: 22rem">
<MDBListGroupItem
class="d-flex justify-content-between align-items-start"
>
<div class="ms-2 me-auto">
<div class="fw-bold">Subheading</div>
Content for list item
</div>
<MDBBadge class="badge-primary" pill>14</MDBBadge>
</MDBListGroupItem>
<MDBListGroupItem
class="d-flex justify-content-between align-items-start"
>
<div class="ms-2 me-auto">
<div class="fw-bold">Subheading</div>
Content for list item
</div>
<MDBBadge class="badge-primary" pill>14</MDBBadge>
</MDBListGroupItem>
<MDBListGroupItem
class="d-flex justify-content-between align-items-start"
>
<div class="ms-2 me-auto">
<div class="fw-bold">Subheading</div>
Content for list item
</div>
<MDBBadge class="badge-primary" pill>14</MDBBadge>
</MDBListGroupItem>
</MDBListGroup>
<script>
import { MDBListGroup, MDBListGroupItem, MDBBadge } from "mdb-vue-ui-kit";
export default {
components: {
MDBListGroup,
MDBListGroupItem,
MDBBadge
}
};
</script>
<script setup lang="ts">
import { MDBListGroup, MDBListGroupItem, MDBBadge } from "mdb-vue-ui-kit";
</script>
Horizontal
Add horizontal
to change the layout of list group items from vertical to
horizontal across all breakpoints. Alternatively, choose a responsive variant
horizontal={sm|md|lg|xl|xxl}
to make a list group horizontal starting at that
breakpoint’s min-width
. Currently
horizontal list groups cannot be combined with flush or light list groups.
ProTip: Want equal-width list group items when horizontal? Add
.flex-fill
to each list group item.
- An item
- A second item
- A third item
- An item
- A second item
- A third item
- An item
- A second item
- A third item
- An item
- A second item
- A third item
- An item
- A second item
- A third item
- An item
- A second item
- A third item
<template>
<MDBListGroup horizontal>
<MDBListGroupItem>An item</MDBListGroupItem>
<MDBListGroupItem>A second item</MDBListGroupItem>
<MDBListGroupItem>A third item</MDBListGroupItem>
</MDBListGroup>
<MDBListGroup horizontal="sm">
<MDBListGroupItem>An item</MDBListGroupItem>
<MDBListGroupItem>A second item</MDBListGroupItem>
<MDBListGroupItem>A third item</MDBListGroupItem>
</MDBListGroup>
<MDBListGroup horizontal="md">
<MDBListGroupItem>An item</MDBListGroupItem>
<MDBListGroupItem>A second item</MDBListGroupItem>
<MDBListGroupItem>A third item</MDBListGroupItem>
</MDBListGroup>
<MDBListGroup horizontal="lg">
<MDBListGroupItem>An item</MDBListGroupItem>
<MDBListGroupItem>A second item</MDBListGroupItem>
<MDBListGroupItem>A third item</MDBListGroupItem>
</MDBListGroup>
<MDBListGroup horizontal="xl">
<MDBListGroupItem>An item</MDBListGroupItem>
<MDBListGroupItem>A second item</MDBListGroupItem>
<MDBListGroupItem>A third item</MDBListGroupItem>
</MDBListGroup>
<MDBListGroup horizontal="xxl">
<MDBListGroupItem>An item</MDBListGroupItem>
<MDBListGroupItem>A second item</MDBListGroupItem>
<MDBListGroupItem>A third item</MDBListGroupItem>
</MDBListGroup>
</template>
<script>
import { MDBListGroup, MDBListGroupItem } from "mdb-vue-ui-kit";
export default {
components: {
MDBListGroup,
MDBListGroupItem
}
};
</script>
<script setup lang="ts">
import { MDBListGroup, MDBListGroupItem } from "mdb-vue-ui-kit";
</script>
Contextual props
Use contextual color
props to style list items with a stateful background and
color.
- 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
<template>
<MDBListGroup light>
<MDBListGroupItem class="rounded-3 mb-2" noBorder spacing>
Dapibus ac facilisis in
</MDBListGroupItem>
<MDBListGroupItem class="rounded-3 mb-2" color="primary" noBorder spacing>
A simple primary list group item
</MDBListGroupItem>
<MDBListGroupItem class="rounded-3 mb-2" color="secondary" noBorder spacing>
A simple secondary list group item
</MDBListGroupItem>
<MDBListGroupItem class="rounded-3 mb-2" color="success" noBorder spacing>
A simple success list group item
</MDBListGroupItem>
<MDBListGroupItem class="rounded-3 mb-2" color="danger" noBorder spacing>
A simple danger list group item
</MDBListGroupItem>
<MDBListGroupItem class="rounded-3 mb-2" color="warning" noBorder spacing>
A simple warning list group item
</MDBListGroupItem>
<MDBListGroupItem class="rounded-3 mb-2" color="info" noBorder spacing>
A simple info list group item
</MDBListGroupItem>
<MDBListGroupItem class="rounded-3 mb-2" color="light" noBorder spacing>
A simple light list group item
</MDBListGroupItem>
<MDBListGroupItem class="rounded-3 mb-2" color="dark" noBorder spacing>
A simple dark list group item
</MDBListGroupItem>
</MDBListGroup>
</template>
<script>
import { MDBListGroup, MDBListGroupItem } from "mdb-vue-ui-kit";
export default {
components: {
MDBListGroup,
MDBListGroupItem
}
};
</script>
<script setup lang="ts">
import { MDBListGroup, MDBListGroupItem } from "mdb-vue-ui-kit";
</script>
Contextual props also work with
MDBListGroupItem action
. Note the addition of the hover styles here not present
in the previous example. Also supported is the active
state; apply it to indicate
an active selection on a contextual list group item.
<template>
<MDBListGroup light>
<MDBListGroupItem class="rounded-3 mb-2" tag="a" href="#" action noBorder spacing>
Dapibus ac facilisis in
</MDBListGroupItem>
<MDBListGroupItem class="rounded-3 mb-2" tag="a" href="#" action color="primary" noBorder spacing>
A simple primary list group item
</MDBListGroupItem>
<MDBListGroupItem class="rounded-3 mb-2" tag="a" href="#" action color="secondary" noBorder spacing>
A simple secondary list group item
</MDBListGroupItem>
<MDBListGroupItem class="rounded-3 mb-2" tag="a" href="#" action color="success" noBorder spacing>
A simple success list group item
</MDBListGroupItem>
<MDBListGroupItem class="rounded-3 mb-2" tag="a" href="#" action color="danger" noBorder spacing>
A simple danger list group item
</MDBListGroupItem>
<MDBListGroupItem class="rounded-3 mb-2" tag="a" href="#" action color="warning" noBorder spacing>
A simple warning list group item
</MDBListGroupItem>
<MDBListGroupItem class="rounded-3 mb-2" tag="a" href="#" action color="info" noBorder spacing>
A simple info list group item
</MDBListGroupItem>
<MDBListGroupItem class="rounded-3 mb-2" tag="a" href="#" action color="light" noBorder spacing>
A simple light list group item
</MDBListGroupItem>
<MDBListGroupItem class="rounded-3 mb-2" tag="a" href="#" action color="dark" noBorder spacing>
A simple dark list group item
</MDBListGroupItem>
</MDBListGroup>
</template>
<script>
import { MDBListGroup, MDBListGroupItem } from "mdb-vue-ui-kit";
export default {
components: {
MDBListGroup,
MDBListGroupItem
}
};
</script>
<script setup lang="ts">
import { MDBListGroup, MDBListGroupItem } from "mdb-vue-ui-kit";
</script>
Conveying meaning to assistive technologies:
Using color to add meaning only provides a visual indication, which will not be conveyed to
users of assistive technologies – such as screen readers. Ensure that information denoted by
the color is either obvious from the content itself (e.g. the visible text), or is included
through alternative means, such as additional text hidden with the
.visually-hidden
class.
Badges
Add badges to any list group item to show unread counts, activity, and more with the help of some flexbox utilities.
- A list item 14
- A second list item 2
- A third list item 1
<template>
<MDBListGroup light>
<MDBListGroupItem class="d-flex justify-content-between align-items-center">A list item
<MDBBadge class="badge-primary" pill>14</MDBBadge>
</MDBListGroupItem>
<MDBListGroupItem class="d-flex justify-content-between align-items-center">A second list item
<MDBBadge class="badge-primary" pill>2</MDBBadge>
</MDBListGroupItem>
<MDBListGroupItem class="d-flex justify-content-between align-items-center">A third list item
<MDBBadge class="badge-primary" pill>1</MDBBadge>
</MDBListGroupItem>
</MDBListGroup>
</template>
<script>
import { MDBListGroup, MDBListGroupItem, MDBBadge } from "mdb-vue-ui-kit";
export default {
components: {
MDBListGroup,
MDBListGroupItem,
MDBBadge
}
};
</script>
<script setup lang="ts">
import { MDBListGroup, MDBListGroupItem, MDBBadge } from "mdb-vue-ui-kit";
</script>
Custom content
Add nearly any HTML within, even for linked list groups like the one below, with the help of flexbox utilities.
-
John Doejohn.doe@gmail.com
-
Alex Rayalex.ray@gmail.com
-
Kate Huningtonkate.hunington@gmail.com
<template>
<MDBListGroup light>
<MDBListGroupItem class="d-flex justify-content-between align-items-center">
<div>
<div class="fw-bold">John Doe</div>
<div class="text-muted">john.doe@gmail.com</div>
</div>
<MDBBadge class="badge-success rounded-pill">Active</MDBBadge>
</MDBListGroupItem>
<MDBListGroupItem class="d-flex justify-content-between align-items-center">
<div>
<div class="fw-bold">Alex Ray</div>
<div class="text-muted">alex.ray@gmail.com</div>
</div>
<MDBBadge class="badge-primary rounded-pill">Onboarding</MDBBadge>
</MDBListGroupItem>
<MDBListGroupItem class="d-flex justify-content-between align-items-center">
<div>
<div class="fw-bold">Kate Hunington</div>
<div class="text-muted">kate.hunington@gmail.com</div>
</div>
<MDBBadge class="badge-warning rounded-pill">Awaiting</MDBBadge>
</MDBListGroupItem>
</MDBListGroup>
</template>
<script>
import { MDBListGroup, MDBListGroupItem } from "mdb-vue-ui-kit";
export default {
components: {
MDBListGroup,
MDBListGroupItem
}
};
</script>
<script setup lang="ts">
import { MDBListGroup, MDBListGroupItem } from "mdb-vue-ui-kit";
</script>
Checkboxes
Place Bootstrap’s checkboxes and radios within list group items and customize as needed. You
can use them without <label>
s, but please remember to include an
aria-label
attribute and value for accessibility.
- First checkbox
- Second checkbox
- Third checkbox
- Fourth checkbox
- Fifth checkbox
<template>
<MDBListGroup light>
<MDBListGroupItem>
<input class="form-check-input me-1" type="checkbox" value="" aria-label="..." />
First checkbox
</MDBListGroupItem>
<MDBListGroupItem>
<input class="form-check-input me-1" type="checkbox" value="" aria-label="..." />
Second checkbox
</MDBListGroupItem>
<MDBListGroupItem>
<input class="form-check-input me-1" type="checkbox" value="" aria-label="..." />
Third checkbox
</MDBListGroupItem>
<MDBListGroupItem>
<input class="form-check-input me-1" type="checkbox" value="" aria-label="..." />
Fourth checkbox
</MDBListGroupItem>
<MDBListGroupItem>
<input class="form-check-input me-1" type="checkbox" value="" aria-label="..." />
Fifth checkbox
</MDBListGroupItem>
</MDBListGroup>
</template>
<script>
import { MDBListGroup, MDBListGroupItem } from "mdb-vue-ui-kit";
export default {
components: {
MDBListGroup,
MDBListGroupItem
}
};
</script>
<script setup lang="ts">
import { MDBListGroup, MDBListGroupItem } from "mdb-vue-ui-kit";
</script>
And if you want <label>
s as the MDBListGroupItem
for large hit
areas, you can do that, too.
<template>
<MDBListGroup light>
<MDBListGroupItem tag="label">
<input class="form-check-input me-1" type="checkbox" value="" />
First checkbox
</MDBListGroupItem>
<MDBListGroupItem tag="label">
<input class="form-check-input me-1" type="checkbox" value="" />
Second checkbox
</MDBListGroupItem>
<MDBListGroupItem tag="label">
<input class="form-check-input me-1" type="checkbox" value="" />
Third checkbox
</MDBListGroupItem>
<MDBListGroupItem tag="label">
<input class="form-check-input me-1" type="checkbox" value="" />
Fourth checkbox
</MDBListGroupItem>
<MDBListGroupItem tag="label">
<input class="form-check-input me-1" type="checkbox" value="" />
Fifth checkbox
</MDBListGroupItem>
</MDBListGroup>
</template>
<script>
import { MDBListGroup, MDBListGroupItem } from "mdb-vue-ui-kit";
export default {
components: {
MDBListGroup,
MDBListGroupItem
}
};
</script>
<script setup lang="ts">
import { MDBListGroup, MDBListGroupItem } from "mdb-vue-ui-kit";
</script>
JavaScript behavior
Use the tab JavaScript plugin to extend our list group to create tabbable panes of local content.
<MDBRow>
<MDBCol col="4">
<MDBListGroup light id="list-tab" role="tablist">
<MDBListGroupItem
tag="a"
action
active
id="list-home-list"
data-mdb-toggle="list"
href="#list-home"
role="tab"
aria-controls="home"
noBorder
spacing
>Home</MDBListGroupItem
>
<MDBListGroupItem
tag="a"
action
id="list-profile-list"
data-mdb-toggle="list"
href="#list-profile"
role="tab"
aria-controls="profile"
noBorder
spacing
>Profile</MDBListGroupItem
>
<MDBListGroupItem
tag="a"
action
id="list-messages-list"
data-mdb-toggle="list"
href="#list-messages"
role="tab"
aria-controls="messages"
noBorder
spacing
>Messages</MDBListGroupItem
>
<MDBListGroupItem
tag="a"
action
id="list-settings-list"
data-mdb-toggle="list"
href="#list-settings"
role="tab"
aria-controls="settings"
noBorder
spacing
>Settings</MDBListGroupItem
>
</MDBListGroup>
</MDBCol>
<MDBCol col="8">
<div class="tab-content" id="nav-tabContent">
<div
class="tab-pane fade show active"
id="list-home"
role="tabpanel"
aria-labelledby="list-home-list"
>
Some placeholder content in a paragraph relating to "Home". And some more content, used here just to pad out and fill this tab panel. In production, you would obviously have more real content here. And not just text. It could be anything, really. Text, images, forms.
</div>
<div
class="tab-pane fade"
id="list-profile"
role="tabpanel"
aria-labelledby="list-profile-list"
>
Some placeholder content in a paragraph relating to "Profile". And some more content, used here just to pad out and fill this tab panel. In production, you would obviously have more real content here. And not just text. It could be anything, really. Text, images, forms.
</div>
<div
class="tab-pane fade"
id="list-messages"
role="tabpanel"
aria-labelledby="list-messages-list"
>
Some placeholder content in a paragraph relating to "Messages". And some more content, used here just to pad out and fill this tab panel. In production, you would obviously have more real content here. And not just text. It could be anything, really. Text, images, forms.
</div>
<div
class="tab-pane fade"
id="list-settings"
role="tabpanel"
aria-labelledby="list-settings-list"
>
Some placeholder content in a paragraph relating to "Settings". And some more content, used here just to pad out and fill this tab panel. In production, you would obviously have more real content here. And not just text. It could be anything, really. Text, images, forms.
</div>
</div>
</MDBCol>
</MDBRow>
<script>
import { MDBListGroup, MDBListGroupItem, MDBRow, MDBCol } from "mdb-vue-ui-kit";
export default {
components: {
MDBListGroup,
MDBListGroupItem,
MDBRow,
MDBCol,
}
};
</script>
<script setup lang="ts">
import { MDBListGroup, MDBListGroupItem, MDBRow, MDBCol } from "mdb-vue-ui-kit";
</script>
Fade effect
To make tabs panel fade in, add .fade
to each .tab-pane
. The
first tab pane must also have .show
to make the initial content visible.
<div class="tab-content">
<div class="tab-pane fade show active" id="home" role="tabpanel">...</div>
<div class="tab-pane fade" id="profile" role="tabpanel">...</div>
<div class="tab-pane fade" id="messages" role="tabpanel">...</div>
<div class="tab-pane fade" id="settings" role="tabpanel">...</div>
</div>
Additional examples
A few additional, practical examples with different types of content and elements.
Images
-
John Doe
john.doe@gmail.com
-
Alex Ray
alex.ray@gmail.com
-
Kate Hunington
kate.hunington@gmail.com
<MDBListGroup light>
<MDBListGroupItem class="d-flex justify-content-between align-items-center">
<div class="d-flex align-items-center">
<img
src="https://mdbootstrap.com/img/new/avatars/8.jpg"
alt=""
style="width: 45px; height: 45px"
class="rounded-circle"
/>
<div class="ms-3">
<p class="fw-bold mb-1">John Doe</p>
<p class="text-muted mb-0">john.doe@gmail.com</p>
</div>
</div>
<MDBBadge class="rounded-pill badge-success">Active</MDBBadge>
</MDBListGroupItem>
<MDBListGroupItem class="d-flex justify-content-between align-items-center">
<div class="d-flex align-items-center">
<img
src="https://mdbootstrap.com/img/new/avatars/6.jpg"
class="rounded-circle"
alt=""
style="width: 45px; height: 45px"
/>
<div class="ms-3">
<p class="fw-bold mb-1">Alex Ray</p>
<p class="text-muted mb-0">alex.ray@gmail.com</p>
</div>
</div>
<MDBBadge class="rounded-pill badge-primary">Onboarding</MDBBadge>
</MDBListGroupItem>
<MDBListGroupItem class="d-flex justify-content-between align-items-center">
<div class="d-flex align-items-center">
<img
src="https://mdbootstrap.com/img/new/avatars/7.jpg"
class="rounded-circle"
alt=""
style="width: 45px; height: 45px"
/>
<div class="ms-3">
<p class="fw-bold mb-1">Kate Hunington</p>
<p class="text-muted mb-0">kate.hunington@gmail.com</p>
</div>
</div>
<MDBBadge class="rounded-pill badge-warning">Awaiting</MDBBadge>
</MDBListGroupItem>
</MDBListGroup>
<script>
import { MDBListGroup, MDBListGroupItem, MDBBadge } from "mdb-vue-ui-kit";
export default {
components: {
MDBListGroup,
MDBListGroupItem,
MDBBadge,
}
};
</script>
<script setup lang="ts">
import { MDBListGroup, MDBListGroupItem, MDBBadge } from "mdb-vue-ui-kit";
</script>
Headings
Marketing team
-
John Doe
john.doe@gmail.com
-
Alex Ray
alex.ray@gmail.com
-
Kate Hunington
kate.hunington@gmail.com
Design team
-
Soraya Letto
soraya.letto@gmail.com
-
Zeynep Dudley
zeynep.dudley@gmail.com
-
Ayat Black
ayat.black@gmail.com
<div>
<h6 class="bg-light p-2 border-top border-bottom">Marketing team</h6>
<MDBListGroup light style="min-width: 22rem">
<MDBListGroupItem
class="d-flex justify-content-between align-items-center"
>
<div class="d-flex align-items-center">
<img
src="https://mdbootstrap.com/img/new/avatars/8.jpg"
alt=""
style="width: 45px; height: 45px"
class="rounded-circle"
/>
<div class="ms-3">
<p class="fw-bold mb-1">John Doe</p>
<p class="text-muted mb-0">john.doe@gmail.com</p>
</div>
</div>
</MDBListGroupItem>
<MDBListGroupItem
class="d-flex justify-content-between align-items-center"
>
<div class="d-flex align-items-center">
<img
src="https://mdbootstrap.com/img/new/avatars/6.jpg"
class="rounded-circle"
alt=""
style="width: 45px; height: 45px"
/>
<div class="ms-3">
<p class="fw-bold mb-1">Alex Ray</p>
<p class="text-muted mb-0">alex.ray@gmail.com</p>
</div>
</div>
</MDBListGroupItem>
<MDBListGroupItem
class="d-flex justify-content-between align-items-center"
>
<div class="d-flex align-items-center">
<img
src="https://mdbootstrap.com/img/new/avatars/7.jpg"
class="rounded-circle"
alt=""
style="width: 45px; height: 45px"
/>
<div class="ms-3">
<p class="fw-bold mb-1">Kate Hunington</p>
<p class="text-muted mb-0">kate.hunington@gmail.com</p>
</div>
</div>
</MDBListGroupItem>
</MDBListGroup>
<h6 class="bg-light p-2 border-top border-bottom">Design team</h6>
<MDBListGroup light style="min-width: 22rem">
<MDBListGroupItem
class="d-flex justify-content-between align-items-center"
>
<div class="d-flex align-items-center">
<img
src="https://mdbootstrap.com/img/new/avatars/9.jpg"
alt=""
style="width: 45px; height: 45px"
class="rounded-circle"
/>
<div class="ms-3">
<p class="fw-bold mb-1">Soraya Letto</p>
<p class="text-muted mb-0">soraya.letto@gmail.com</p>
</div>
</div>
</MDBListGroupItem>
<MDBListGroupItem
class="d-flex justify-content-between align-items-center"
>
<div class="d-flex align-items-center">
<img
src="https://mdbootstrap.com/img/new/avatars/11.jpg"
class="rounded-circle"
alt=""
style="width: 45px; height: 45px"
/>
<div class="ms-3">
<p class="fw-bold mb-1">Zeynep Dudley</p>
<p class="text-muted mb-0">zeynep.dudley@gmail.com</p>
</div>
</div>
</MDBListGroupItem>
<MDBListGroupItem
class="d-flex justify-content-between align-items-center"
>
<div class="d-flex align-items-center">
<img
src="https://mdbootstrap.com/img/new/avatars/15.jpg"
class="rounded-circle"
alt=""
style="width: 45px; height: 45px"
/>
<div class="ms-3">
<p class="fw-bold mb-1">Ayat Black</p>
<p class="text-muted mb-0">ayat.black@gmail.com</p>
</div>
</div>
</MDBListGroupItem>
</MDBListGroup>
</div>
<script>
import { MDBListGroup, MDBListGroupItem } from "mdb-vue-ui-kit";
export default {
components: {
MDBListGroup,
MDBListGroupItem
}
};
</script>
<script setup lang="ts">
import { MDBListGroup, MDBListGroupItem } from "mdb-vue-ui-kit";
</script>
CTA
-
Our company starts its operations
11 March 2020
Some placeholder content in a paragraph relating to "Our company starts its operations". And some more content, used here just to pad out and fill this tab panel. In production, you would obviously have more real content here. And not just text. It could be anything, really. Text, images, forms.
-
First customer
19 March 2020
Some placeholder content in a paragraph relating to "First customer". And some more content, used here just to pad out and fill this tab panel. In production, you would obviously have more real content here. And not just text. It could be anything, really. Text, images, forms.
-
Our team exceeds 10 people
24 June 2020
Some placeholder content in a paragraph relating to "Our team exceeds 10 people". And some more content, used here just to pad out and fill this tab panel. In production, you would obviously have more real content here. And not just text. It could be anything, really. Text, images, forms.
<div>
<MDBListGroup light style="min-width: 22rem" class="mb-3">
<MDBListGroupItem>
<h5 class="fw-bold">Our company starts its operations</h5>
<p class="text-muted mb-2 fw-bold">11 March 2020</p>
<p class="text-muted mb-0">
Some placeholder content in a paragraph relating to "Our company starts its operations". And some more content, used here just to pad out and fill this tab panel. In production, you would obviously have more real content here. And not just text. It could be anything, really. Text, images, forms.
</p>
</MDBListGroupItem>
<MDBListGroupItem>
<h5 class="fw-bold">First customer</h5>
<p class="text-muted mb-2 fw-bold">19 March 2020</p>
<p class="text-muted mb-0">
Some placeholder content in a paragraph relating to "First customer". And some more content, used here just to pad out and fill this tab panel. In production, you would obviously have more real content here. And not just text. It could be anything, really. Text, images, forms.
</p>
</MDBListGroupItem>
<MDBListGroupItem>
<h5 class="fw-bold">Our team exceeds 10 people</h5>
<p class="text-muted mb-2 fw-bold">24 June 2020</p>
<p class="text-muted mb-0">
Some placeholder content in a paragraph relating to "Our team exceeds 10 people". And some more content, used here just to pad out and fill this tab panel. In production, you would obviously have more real content here. And not just text. It could be anything, really. Text, images, forms.
</p>
</MDBListGroupItem>
</MDBListGroup>
<a
class="btn btn-outline-dark btn-rounded w-100"
href="#"
role="button"
data-ripple-color="dark"
>View all</a
>
</div>
<script>
import { MDBListGroup, MDBListGroupItem } from "mdb-vue-ui-kit";
export default {
components: {
MDBListGroup,
MDBListGroupItem
}
};
</script>
<script setup lang="ts">
import { MDBListGroup, MDBListGroupItem } from "mdb-vue-ui-kit";
</script>
Grid list
John Doe
john.doe@gmail.com
Alex Ray
alex.ray@gmail.com
Kate Hunington
kate.hunington@gmail.com
Soraya Letto
soraya.letto@gmail.com
Zeynep Dudley
zeynep.dudley@gmail.com
Ayat Black
ayat.black@gmail.com
<div class="row">
<div class="col-xl-4 col-lg-6 mb-4">
<MDBCard>
<MDBCardBody>
<div class="d-flex align-items-center">
<img
src="https://mdbootstrap.com/img/new/avatars/8.jpg"
alt=""
style="width: 45px; height: 45px"
class="rounded-circle"
/>
<div class="ms-3">
<p class="fw-bold mb-1">John Doe</p>
<p class="text-muted mb-0">john.doe@gmail.com</p>
</div>
</div>
</MDBCardBody>
</MDBCard>
</div>
<div class="col-xl-4 col-lg-6 mb-4">
<MDBCard>
<MDBCardBody>
<div class="d-flex align-items-center">
<img
src="https://mdbootstrap.com/img/new/avatars/6.jpg"
alt=""
style="width: 45px; height: 45px"
class="rounded-circle"
/>
<div class="ms-3">
<p class="fw-bold mb-1">Alex Ray</p>
<p class="text-muted mb-0">alex.ray@gmail.com</p>
</div>
</div>
</MDBCardBody>
</MDBCard>
</div>
<div class="col-xl-4 col-lg-6 mb-4">
<MDBCard>
<MDBCardBody>
<div class="d-flex align-items-center">
<img
src="https://mdbootstrap.com/img/new/avatars/7.jpg"
alt=""
style="width: 45px; height: 45px"
class="rounded-circle"
/>
<div class="ms-3">
<p class="fw-bold mb-1">Kate Hunington</p>
<p class="text-muted mb-0">kate.hunington@gmail.com</p>
</div>
</div>
</MDBCardBody>
</MDBCard>
</div>
<div class="col-xl-4 col-lg-6 mb-4">
<MDBCard>
<MDBCardBody>
<div class="d-flex align-items-center">
<img
src="https://mdbootstrap.com/img/new/avatars/9.jpg"
alt=""
style="width: 45px; height: 45px"
class="rounded-circle"
/>
<div class="ms-3">
<p class="fw-bold mb-1">Soraya Letto</p>
<p class="text-muted mb-0">soraya.letto@gmail.com</p>
</div>
</div>
</MDBCardBody>
</MDBCard>
</div>
<div class="col-xl-4 col-lg-6 mb-4">
<MDBCard>
<MDBCardBody>
<div class="d-flex align-items-center">
<img
src="https://mdbootstrap.com/img/new/avatars/11.jpg"
alt=""
style="width: 45px; height: 45px"
class="rounded-circle"
/>
<div class="ms-3">
<p class="fw-bold mb-1">Zeynep Dudley</p>
<p class="text-muted mb-0">zeynep.dudley@gmail.com</p>
</div>
</div>
</MDBCardBody>
</MDBCard>
</div>
<div class="col-xl-4 col-lg-6 mb-4">
<MDBCard>
<MDBCardBody>
<div class="d-flex align-items-center">
<img
src="https://mdbootstrap.com/img/new/avatars/15.jpg"
alt=""
style="width: 45px; height: 45px"
class="rounded-circle"
/>
<div class="ms-3">
<p class="fw-bold mb-1">Ayat Black</p>
<p class="text-muted mb-0">ayat.black@gmail.com</p>
</div>
</div>
</MDBCardBody>
</MDBCard>
</div>
</div>
<script>
import { MDBCard, MDBCardBody } from "mdb-vue-ui-kit";
export default {
components: {
MDBCard,
MDBCardBody
}
};
</script>
<script setup lang="ts">
import { MDBCard, MDBCardBody } from "mdb-vue-ui-kit";
</script>
Complex grid list
John Doe
john.doe@gmail.com
Alex Ray
alex.ray@gmail.com
Kate Hunington
kate.hunington@gmail.com
Michael Bale
michael.bale@gmail.com
<div class="row">
<div class="col-xl-6 col-lg-6 mb-4">
<MDBCard>
<MDBCardBody>
<div
class="d-flex justify-content-between align-items-center"
>
<div class="d-flex align-items-center">
<img
src="https://mdbootstrap.com/img/new/avatars/8.jpg"
alt=""
style="width: 45px; height: 45px"
class="rounded-circle"
/>
<div class="ms-3">
<p class="fw-bold mb-1">John Doe</p>
<p class="text-muted mb-0">john.doe@gmail.com</p>
</div>
</div>
<MDBBadge class="rounded-pill badge-success">Active</MDBBadge>
</div>
</MDBCardBody>
<MDBCardFooter
class="border-0 bg-light p-2 d-flex justify-content-around"
>
<a
class="btn btn-link m-0 text-reset"
href="#"
role="button"
data-ripple-color="primary"
>Message<i class="fas fa-envelope ms-2"></i
></a>
<a
class="btn btn-link m-0 text-reset"
href="#"
role="button"
data-ripple-color="primary"
>Call<i class="fas fa-phone ms-2"></i
></a>
</MDBCardFooter>
</MDBCard>
</div>
<div class="col-xl-6 col-lg-6 mb-4">
<MDBCard>
<MDBCardBody>
<div
class="d-flex justify-content-between align-items-center"
>
<div class="d-flex align-items-center">
<img
src="https://mdbootstrap.com/img/new/avatars/6.jpg"
alt=""
style="width: 45px; height: 45px"
class="rounded-circle"
/>
<div class="ms-3">
<p class="fw-bold mb-1">Alex Ray</p>
<p class="text-muted mb-0">alex.ray@gmail.com</p>
</div>
</div>
<MDBBadge class="rounded-pill badge-primary">Onboarding</MDBBadge>
</div>
</MDBCardBody>
<MDBCardFooter
class="border-0 bg-light p-2 d-flex justify-content-around"
>
<a
class="btn btn-link m-0 text-reset"
href="#"
role="button"
data-ripple-color="primary"
>Message<i class="fas fa-envelope ms-2"></i
></a>
<a
class="btn btn-link m-0 text-reset"
href="#"
role="button"
data-ripple-color="primary"
>Call<i class="fas fa-phone ms-2"></i
></a>
</MDBCardFooter>
</MDBCard>
</div>
<div class="col-xl-6 col-lg-6 mb-4">
<MDBCard>
<MDBCardBody>
<div
class="d-flex justify-content-between align-items-center"
>
<div class="d-flex align-items-center">
<img
src="https://mdbootstrap.com/img/new/avatars/7.jpg"
alt=""
style="width: 45px; height: 45px"
class="rounded-circle"
/>
<div class="ms-3">
<p class="fw-bold mb-1">Kate Hunington</p>
<p class="text-muted mb-0">
kate.hunington@gmail.com
</p>
</div>
</div>
<MDBBadge class="rounded-pill badge-warning">Awaiting</MDBBadge>
</div>
</MDBCardBody>
<MDBCardFooter
class="border-0 bg-light p-2 d-flex justify-content-around"
>
<a
class="btn btn-link m-0 text-reset"
href="#"
role="button"
data-ripple-color="primary"
>Message<i class="fas fa-envelope ms-2"></i
></a>
<a
class="btn btn-link m-0 text-reset"
href="#"
role="button"
data-ripple-color="primary"
>Call<i class="fas fa-phone ms-2"></i
></a>
</MDBCardFooter>
</MDBCard>
</div>
<div class="col-xl-6 col-lg-6 mb-4">
<MDBCard>
<MDBCardBody>
<div
class="d-flex justify-content-between align-items-center"
>
<div class="d-flex align-items-center">
<img
src="https://mdbootstrap.com/img/new/avatars/3.jpg"
alt=""
style="width: 45px; height: 45px"
class="rounded-circle"
/>
<div class="ms-3">
<p class="fw-bold mb-1">Michael Bale</p>
<p class="text-muted mb-0">michael.bale@gmail.com</p>
</div>
</div>
<MDBBadge class="rounded-pill badge-danger">Removed</MDBBadge>
</div>
</MDBCardBody>
<MDBCardFooter
class="border-0 bg-light p-2 d-flex justify-content-around"
>
<a
class="btn btn-link m-0 text-reset"
href="#"
role="button"
data-ripple-color="primary"
>Message<i class="fas fa-envelope ms-2"></i
></a>
<a
class="btn btn-link m-0 text-reset"
href="#"
role="button"
data-ripple-color="primary"
>Call<i class="fas fa-phone ms-2"></i
></a>
</MDBCardFooter>
</MDBCard>
</div>
</div>
<script>
import { MDBCard, MDBCardBody, MDBCardFooter, MDBBadge } from "mdb-vue-ui-kit";
export default {
components: {
MDBCard,
MDBCardBody,
MDBCardFooter,
MDBBadge
}
};
</script>
<script setup lang="ts">
import { MDBCard, MDBCardBody, MDBCardFooter, MDBBadge } from "mdb-vue-ui-kit";
</script>
List group - API
Import
<script>
import {
MDBListGroup,
MDBListGroupItem
} from 'mdb-vue-ui-kit';
</script>
Properties
MDBListGroup
Name | Type | Default | Description | Example |
---|---|---|---|---|
tag
|
String | 'ul' |
Defines tag of the MDBListGroup element |
<MDBListGroup tag="section" />
|
light
|
Boolean | false |
Uses light version of the MDBListGroup element |
<MDBListGroup light />
|
small
|
Boolean | false |
Reduces padding of the items in the list |
<MDBListGroup small />
|
horizontal
|
Boolean | String | false |
Changes list group's display to horizontal at all breakpoints when no value is
passed and to a specific breakpoint when a value is passed. Use
(sm | md | lg | xl | ) values
|
<MDBListGroup horizontal />
<MDBListGroup horizontal="md" />
|
numbered
|
Boolean | false |
Adds list item numeration |
<MDBListGroup numbered />
|
MDBListGroupItem
Name | Type | Default | Description | Example |
---|---|---|---|---|
tag
|
String | 'li' |
Defines tag of the MDBListGroupItem element |
<MDBListGroupItem tag="div" />
|
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) |
<MDBListGroupItem color="danger" />
|
active
|
Boolean | false |
Sets item active |
<MDBListGroupItem active />
|
disabled
|
Boolean | false |
Sets item disabled |
<MDBListGroupItem disabled />
|
action
|
Boolean | false |
Changes list group item's styling to action |
<MDBListGroupItem action />
|
noBorder
|
Boolean | false |
Removes border from the MDBListGroupItem element |
<MDBListGroupItem noBorder />
|
spacing
|
Boolean / String | false |
Adds padding to the MDBListGroupItem element. Use px-0 | px-1 | px-2 | px-3 | px-4 | px-5 values. If value is not provided - px-3 is set by default |
<MDBListGroupItem spacing />
|
ripple
|
Boolean / Object | false |
Adds ripple to the MDBListGroupItem element. |
<MDBListGroupItem noBorder />
|
CSS variables
As part of MDB’s evolving CSS variables approach, list group now uses local CSS variables on
.list-group
for enhanced real-time customization. Values for the CSS variables
are set via Sass, so Sass customization is still supported, too.
// .list-group
--#{$prefix}list-group-color: #{$list-group-color};
--#{$prefix}list-group-bg: #{$list-group-bg};
--#{$prefix}list-group-border-color: #{$list-group-border-color};
--#{$prefix}list-group-border-width: #{$list-group-border-width};
--#{$prefix}list-group-border-radius: #{$list-group-border-radius};
--#{$prefix}list-group-item-padding-x: #{$list-group-item-padding-x};
--#{$prefix}list-group-item-padding-y: #{$list-group-item-padding-y};
--#{$prefix}list-group-item-transition-time: #{$list-group-item-transition-time};
--#{$prefix}list-group-action-color: #{$list-group-action-color};
--#{$prefix}list-group-action-hover-color: #{$list-group-action-hover-color};
--#{$prefix}list-group-action-hover-bg: #{$list-group-hover-bg};
--#{$prefix}list-group-action-active-color: #{$list-group-action-active-color};
--#{$prefix}list-group-action-active-bg: #{$list-group-action-active-bg};
--#{$prefix}list-group-disabled-color: #{$list-group-disabled-color};
--#{$prefix}list-group-disabled-bg: #{$list-group-disabled-bg};
--#{$prefix}list-group-active-color: #{$list-group-active-color};
--#{$prefix}list-group-active-bg: #{$list-group-active-bg};
--#{$prefix}list-group-active-border-color: #{$list-group-active-border-color};
// .list-group-light
--#{$prefix}list-group-light-item-py: #{$list-group-light-item-py};
--#{$prefix}list-group-light-item-border: #{$list-group-light-item-border};
--#{$prefix}list-group-light-item-border-width: #{$list-group-light-item-border-width};
--#{$prefix}list-group-light-active-border-radius: #{$list-group-light-active-border-radius};
--#{$prefix}list-group-light-active-bg: #{$list-group-light-active-bg};
--#{$prefix}list-group-light-active-color: #{$list-group-light-active-color};
// .list-group-small
--#{$prefix}list-group-small-item-py: #{$list-group-small-item-py};
SCSS variables
$list-group-border-radius: $border-radius-lg;
$list-group-border-color: rgba($black, 0.125);
$list-group-border-width: $border-width;
$list-group-item-padding-x: 1.5rem;
$list-group-item-padding-y: $spacer * 0.5;
$list-group-item-bg-scale: -80%;
$list-group-item-color-scale: 40%;
$list-group-item-transition-time: 0.5s;
$list-group-color: $body-color;
$list-group-light-item-py: 1rem;
$list-group-light-item-border: 2px solid hsl(0, 0%, 96%);
$list-group-light-item-border-width: 2px;
$list-group-light-active-border-radius: 0.5rem;
$list-group-light-active-bg: rgb(223, 231, 246);
$list-group-light-active-color: rgb(44, 88, 160);
$list-group-small-item-py: 0.5rem;
$list-group-active-bg: rgb(223, 231, 246);
$list-group-active-color: rgb(44, 88, 160);
$list-group-active-border-color: $list-group-active-bg;
$list-group-color: $gray-900;
$list-group-bg: $white;
$list-group-hover-bg: $gray-100;
$list-group-active-color: $component-active-color;
$list-group-active-bg: $component-active-bg;
$list-group-active-border-color: $list-group-active-bg;
$list-group-disabled-color: $gray-600;
$list-group-disabled-bg: $list-group-bg;
$list-group-action-color: $gray-700;
$list-group-action-hover-color: $list-group-action-color;
$list-group-action-active-color: $body-color;
$list-group-action-active-bg: $gray-200;