Card

The QCard component is a great way to display important pieces of grouped content. This pattern is quickly emerging as a core design pattern for Apps, website previews and email content. It assists the viewer by containing and organizing information, while also setting up predictable expectations.

With so much content to display at once, and often so little screen real-estate, Cards have fast become the design pattern of choice for many companies, including the likes of Google and Twitter.

The QCard component is intentionally lightweight and essentially a containing element that is capable of “hosting” any other component that is appropriate.

Installation


// quasar.conf.js

return {
  framework: {
    // NOT needed if using auto-import feature:
    components: [
      'QCard',
      'QCardSection',
      'QCardActions'
    ]
  }
}

Usage

TIP

You can play with the typography within your cards to create beautiful cards.

Basic

Basic cards



With actions

Cards with actions



Below are some of the custom alignments that you can use for the actions through the align property:

Aligning actions



Media content

Cards with media content



Card with video



Card with parallax



Horizontal

v1.7+

On the examples below, notice the QCardSection with horizontal prop on it that wraps other QCardSections. Also note that you can directly use col-* classes on children of horizontal QCardSection in order to control the size.

It’s recommended that you use QImg component instead of native <img> when dealing with horizontal QCardSections.

Basic horizontal



More involved examples



Various content

Various content



Table



Tabs



Expandable

On the example below, click on the round button on the bottom right to see the expansion in action.

Expandable



QCard API

QCardSection API

QCardActions API