Skip to main content

List

The List component is designed for displaying information in an organized manner. It can include avatars, content, actions, subheaders, and more. Lists help present content clearly, making it easy to identify specific items within a collection. They offer consistent styling for arranging groups of text and images effectively.

info

For more details about Vuetify’s usage of List component, click List page.
For more prop explanations, click Vuetify List API page.

Props

AttributeDescriptionTypeDefault
activeClassConfigure the active CSS class applied when the link is active.stringundefined
classAllows custom properties to take effect.stringundefined
darkApplies the dark theme variant to the component. You can find more information on the Material Design documentation for dark themesbooleanfalse .
expandWill only collapse when explicitly closedbooleanfalse
subheaderRemoves top padding. Used when previous sibling is a headerbooleanfalse
tagSpecify a custom tag used on the root element.string'div'
threeLineIncreases list-item height for three lines. This prop uses line-clamp and is not supported in all browsers.booleanfalse
tileRemoves the component’s border-radiusbooleanfalse .
twoLineIncreases list-item height for two lines. This prop uses line-clamp and is not supported in all browsersbooleanfalse .
tabindexIt determines the order of switching from one component to another with the tab key.stringundefined
visibleVisibility of List componentbooleantrue

ListGroup

The ListGroup component is used to group related List-ListItemGroup-ListItem components together. It can be expanded or collapsed to show or hide the list items it contains, helping to organize content and improve navigation.

Note

It is not a visible component until it is used in a list pattern.

Props

AttributeDescriptionTypeDefault
appendIconAppends an icon to the component, uses the same syntax as Iconstring'$expand'
activeClassConfigures the active CSS class applied when the link is active.stringundefined
classAllows custom properties to take effect.stringundefined
eagerWill force the components content to render on mounted. This is useful if you have content that will not be rendered in the DOM that you want crawled for SEO.booleanfalse
groupAssigns a route namespace. Accepts a string or regexp for determining active statestring | regexpundefined
noActionRemoves left padding assigned for action icons from group itemsbooleanfalse
prependIconPrepends an icon to the component, uses the same syntax as Iconstringundefined
subGroupDesignates the component as nested list groupbooleanfalse
tabindexIt determines the order of switching from one component to another with the tab key.stringundefined
valueExpands / Collapse the list-groupbooleanfalse
visibleVisibility of ListGroup componentbooleantrue

Events

AttributeDescription
clickEvent that is emitted when the component is clicked

Samples Component

AppendIcon

  • Using appendIcon prop, arrow icon can be changed with any other icon.

    image

ActiveClass

  • When activeClass prop is defined as a CSS class, it is applied to the component when the link is active.

    image

Color

  • When the color prop is applied, a transparent color is appeared when the item is clicked.

    image

PrependIcon

  • Using prependIcon prop, users can add icons located before label.

    image

SubGroup

  • subGroup prop provides nested list group view.

    image

ListItem

The ListItem component is used to display individual items within a List. Each list item can include an avatar, primary content, secondary content, and action icons. This component ensures that each item in the list is clearly distinguishable and consistently styled.

Props

AttributeTypeDefaultDescription
activeClassConfigures the active CSS class applied when the link is active.stringundefined
appendSetting append prop always appends the relative path to the current path. You can find more information about the append prop on the vue-router documentation.booleanfalse
darkApplies the dark theme variant to the component. You can find more information on the Material Design documentation for dark themesbooleanfalse .
hrefDesignates the component as anchor and applies the href attribute.stringobject
denseLowers max height of list tilesbooleanfalse
disabledDisables the componentbooleanfalse
exactMatches the exact link. Without this, ‘/’ will match every route. You can find more information about the exact prop on the vue-router documentation.booleanfalse
inputValueControls the active state of the item. This is typically used to highlight the componentanyundefined
inactiveIf set, the list tile will not be rendered as a link even if it has to/href prop or @click handlerbooleanfalse
linkDesignates that the component is a link. This is automatic when using the href or to prop.booleanfalse
#selectableAllow text selection inside list-item. This prop uses user-select.booleanfalse
tabindexIt determines the order of switching from one component to another with the tab key.stringundefined
tagSpecify a custom tag used on the root element.string'div'
twoLineIncreases list-item height for three lines. This prop uses line-clamp and is not supported in all browse.booleanfalse
threeLineIncreases list-item height for two lines. This prop uses line-clamp and is not supported in all browsers.booleanfalse
toDenotes the target route of the link. You can find more information about the to prop on the vue-router documentation.stringobject
visibleVisibility of ListItem componentbooleantrue
targetDesignates the target attribute. This should only be applied when using the href prop.stringundefined
rippleApplies the ripple directive.boolean/objectundefined
visibleVisibility of ListItem component.booleantrue

Events

AttributeDescription
clickEvent that is emitted when the component is clicked
keydown

ListItemAction

The ListItemAction component is used to display action icons or buttons within a list item. It allows users to perform actions related to the list item, such as editing or deleting the item.

tip

Example: You can use listItemAction to add a clickable button or icon to a list item. This makes it easier for users to select or interact with certain elements.

Slots

AttributeDescription
defaultThe default Vue slot.

ListItemActionText

ListItemActionText is not a component used in Vuetify. However, the ListItemAction component represents actions added to a list item. It can contain content and icons and is usually located to the right of a list item.

Slots

AttributeDescription
defaultThe default Vue slot.

ListItemAvatar

The ListItemAvatar component is used to display an avatar image or icon within a list item. You can use this component to add dynamic sizing and edge radius for responsive images, icons, and text. If the rounded property is set to 0, an avatar without an edge radius will be displayed.

Slots

AttributeDescription
defaultThe default Vue slot.

ListItemContent

The ListItemContent component is used to hold the primary and secondary text within a list item (in the middle of a list item). This component provides a structured way to display textual information, ensuring that content is organized and easy to read. Content may include text, images and icons. Represents the main content of the list and can be customized.

Slots

AttributeDescription
defaultThe default Vue slot.

ListItemGroup

The ListGroup component is used to group of selectable ListItems together. It can be expanded or collapsed to show or hide the list items it contains, helping to organize content and improve navigation. It offers a clean interface for interactive lists. With this component, you can select and manage dynamic elements.

tip

Example: You can use ListItemGroup to select items within a list or mark a specific item.

Props

AttributeTypeDefaultDescription
activeClassConfigure the active CSS class applied when the link is active.stringundefined
classAllows custom properties to take effect.stringundefined
darkApplies the dark theme variant to the component. You can find more information on the Material Design documentation for dark themes.booleanfalse
mandatoryForces a value to always be selected (if available).booleanfalse
multipleAllows multiple selections. The value prop must be an array.booleanfalse
valueSets the active list-item inside the list-group.anyundefined
visibleVisibility of ListItemGroup component.booleantrue

Events

AttributeDescription
changeEmitted when the component value is changed by user interaction

Slots

AttributeDescription
defaultThe default Vue slot.

ListItemIcon

The ListItemIcon component is used to display an icon within a list item. It helps to visually differentiate list items and can represent various actions or statuses associated with the item.

Slots

AttributeDescription
defaultThe default Vue slot.

ListItemTitle

The ListItemTitle component is used to display the primary text within a list item and usually located inside a list item. It serves as the main heading or title for the list item, making it easy to identify the item at a glance.

tip

Example: Consider a list containing the name of a user or the title of an item. This title represents the main content of the list and can be customized.

Slots

AttributeDescription
defaultThe default Vue slot.

ListItemSubTitle

The ListItemSubtitle component is used to display secondary text within a list item. It provides additional context or information about the list item, complementing the primary title.

tip

Example: Consider a list item that contains a user's first and last name. While the name title becomes the main title, the surname is added as a subtitle with ListItemSubtitle.

Slots

AttributeDescription
defaultThe default Vue slot.

Samples Qjson

ListExample
List