BlogPlaygroundOne

Lists

The v-list component is used to display information. It can contain an avatar, content, actions, subheaders and much more. Lists present content in a way that makes it easy to identify a specific item in a collection. They provide a consistent styling for organizing groups of text and images.

Usage

Lists come in three main variations. single-line (default), two-line and three-line. The line declaration specifies the minimum height of the item and can also be controlled from v-list with the same prop.

Item 1
Lorem ipsum dolor sit amet consectetur adipisicing elit
Item 2
Lorem ipsum dolor sit amet consectetur adipisicing elit
Item 3
Lorem ipsum dolor sit amet consectetur adipisicing elit
<v-list lines="one"> <v-list-item v-for="n in 3" :key="n" :title="'Item ' + n" subtitle="Lorem ipsum dolor sit amet consectetur adipisicing elit" ></v-list-item> </v-list>

API

ComponentDescription
v-listPrimary Component
v-list-groupSub-component used to display or hide groups of items
v-list-subheaderSub-component used to separate groups of items
v-list-itemSub-component used to display a single item or modify the v-list state
v-list-item-titleSub-component used to display the title of a list item. Wraps the #title slot
v-list-item-subtitleSub-component used to display the subtitle of a list item. Wraps the #subtitle slot
v-list-item-actionSub-component used to display v-checkbox or v-switch
v-list-imgSub-component that is used to wrap a the v-img component
v-list-item-mediaSub-component that is used to wrap a the v-img component
Toggle Inline API

Examples

Props

Items

Lists can either be created by markup using the many sub-components that are available, or by using the items prop.

To customize which properties will be used for the title and value of each item, use the item-title and item-value props.

If you need to render subheaders or dividers, add an item with a type property. Which property to use can be customized using the item-type prop.

Group #1
Group #2

To customize individual items, you can use the item-props prop. It defaults to looking for a props property on the items. The value should be an object, and if found it will be spread on the v-list-item component.

If item-props is set to true then the whole item will be spread.

Density

v-list supports the density property.

REPORTS

Disabled

You cannot interact with disabled v-list.

REPORTS
Real-Time
Audience
Conversions

Variant

v-list supports the variant prop.

Plain Variant
Tonal Variant

Rounded

You can make v-list items rounded.

REPORTS

Shaped

Shaped lists have rounded borders on one side of the v-list-item.

REPORTS

Sub group

Using the v-list-group component you can create sub-groups of items.

Home

Three line

For three line lists, the subtitle will clamp vertically at 2 lines and then ellipsis. This feature uses line-clamp and is not supported in all browsers.

Inbox
Today
Brunch this weekend?
Ali Connors — I'll be in your neighborhood doing errands this weekend. Do you want to hang out?
Summer BBQ
to Alex, Scott, Jennifer — Wish I could come, but I'm out of town this weekend.
Oui oui
Sandra Adams — Do you have Paris recommendations? Have you ever been?
Birthday gift
Trevor Hansen — Have any ideas about what we should get Heidi for her birthday?
Recipe to try
Britta Holt — We should eat this: Grate, Squash, Corn, and tomatillo Tacos.

Two lines and subheader

Lists can contain subheaders, dividers, and can contain 1 or more lines. The subtitle will overflow with ellipsis if it extends past one line.

My files
Folders
Photos
Jan 9, 2014
Recipes
Jan 17, 2014
Work
Jan 28, 2014
Files
Vacation itinerary
Jan 20, 2014
Kitchen remodel
Jan 10, 2014

Misc

Action and item groups

A three-line list with actions. Utilizing select-strategy, easily connect actions to your tiles.

Settings
User Controls
Content filtering
Set the content filtering level to restrict appts that can be downloaded
Password
Require password for purchase or use password to restrict purchase
General

Action with text

A list can contain additional meta information within an action.

Inbox

Card list

A list can be combined with a card.

Ali Conners
(650) 555-1234
Mobile
(323) 555-6789
Work
aliconnors@example.com
Personal
ali_connors@example.com
Work
1400 Main Street
Orlando, FL 79938

Ready for more?

Continue your learning with related content selected by the Team or move between pages by using the navigation links below.