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.
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.
Select your desired component from below and see the available props, slots, events and functions.
Below is a collection of simple to complex examples.
You cannot interact with disabled
Shaped lists have rounded borders on one side of the
v-list can be lowered with
Items don't change when selected in
You can make
v-list items rounded.
Lists also contain slots for a more explicit approach. If you choose this approach, remember you must provide additional props for correct spacing. In this example, we have a title with an avatar, so we must provide an
Lists can contain subheaders, dividers, and can contain 1 or more lines. The subtitle will overflow with ellipsis if it extends past one 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.
Here we combine v-list-item-avatar and v-list-item-icon in a single-line list.
v-list-group component you can create up to 2 levels in depth using the sub-group prop.
Lists can contain multiple subheaders and dividers.
A list can be combined with a card.
A list can contain a stack within an action. This is useful when you need to display meta text next to your action item.
A three-line list with actions. Utilizing v-list-item-group, easily connect actions to your tiles.
A list can contain a group of items which will display on click. Expansion lists are also used within the v-navigation-drawer component.
Ready for more? Continue reading with: