Vue Material -

List


by Creative Tim
Docs
Components
Premium themes

Lists present multiple line items vertically as a single continuous element and are best suited for similar data types.

They can have one, two or three lines of content, with a lot of different contents. Even that the examples on this page may look like that lists can only be used in mobile viewport, you can and should use them in desktop too.

List items can have interaction events, like click and mousedown events. They also integrate nicely with Vue Router.

List

Single line lists are really great for navigational elements, such as drawers. You can pass a icons, text and actions to them. They have also a dense layout, to accommodate more items on the screen:

Single Line
  • move_to_inbox Inbox
  • send Sent Mail
  • delete Trash
  • error Spam
  • People
    Abbey Christansen
  • People
    Alex Nelson
  • People
    Mary Johnson
  • move_to_inbox Inbox
  • send Sent Mail
  • delete Trash
  • error Spam
  • People
    Abbey Christansen
  • People
    Alex Nelson
  • People
    Mary Johnson

The double line lists are good to show additional information about single items:

Double Line
  • Phone
  • phone
    (650) 555-1234 Mobile
  • (650) 555-1234 Mobile
  • Email
  • email
    aliconnors@example.com Personal
  • ali_connors@example.com Work
  • Phone
  • phone
    (650) 555-1234 Mobile
  • (650) 555-1234 Mobile
  • Email
  • email
    aliconnors@example.com Personal
  • ali_connors@example.com Work

The three line lists are great for showing a preview of the full content of the item. It's good for email lists and other information like that:

Triple Line
  • People
    Ali Connors Brunch this weekend?

    I'll be in your neighborhood doing errands this week. Do you want to meet?

  • People
    me, Scott, Jennifer Summer BBQ

    Wish I could come, but I'm out of town this week. :(

  • People
    Sandra Adams Oui oui

    Do you have Paris recommendations? Have you visited good places?

  • People
    Trevor Hansen Order confirmation

    Thank you for your recent order from Amazon

  • People
    Ali Connors Brunch this weekend?

    I'll be in your neighborhood doing errands this week. Do you want to meet?

  • People
    me, Scott, Jennifer Summer BBQ

    Wish I could come, but I'm out of town this week. :(

  • People
    Sandra Adams Oui oui

    Do you have Paris recommendations? Have you visited good places?

  • People
    Trevor Hansen Order confirmation

    Thank you for your recent order from Amazon

List Actions

List items will render different tags based on the interaction types given.

If you pass one of those event, the item will automatically render a button:

  • click
  • dblclick
  • mousedown
  • mouseup

If you pass a href attribute, the item will automatically render an a tag.

All options of router-link can be simply used here. This will render an a tag:

Different types

Lists accept controls as main toggle actions. Really useful to improve form layouts:

Controls
  • Notifications
  • Show content preview
  • Sound
  • Vibrate
  • Notification light
  • Settings
  • network_wifi WiFi
  • bluetooth Bluetooth
  • data_usage Data Usage
  • Ringtone
  • Joy
  • Metal
  • Peace
  • Rock night

Lists can have expansion panels to reveal more options:

Expansion
  • whatshot News
    • World
    • Europe
    • South America
  • videogame_asset Games
    • Console
    • PC
    • Phone
  • video_library Video
    • Humor
    • Music
    • Movies
    • TV Shows
  • shopping_basket Shop

API - md-list

The following options can be applied to any list:

NameDescriptionDefault
md-expand-single Boolean If set true, one expandable list item could be expanded at most at a time. The expanded list item will be collapsed when another is expanded false

API - md-list-item

The following options can be applied to any list item. All options of router-link can be simply used here:

NameDescriptionDefault
md-expand Boolean Enables the expansion panel false
md-expanded Boolean The prop to show/hide the expansion panel. Should be used with the .sync modifier false