Card

DashUI cards provide a flexible and extensible content container with multiple variants and options.

Basic Example

Below is an example of a basic card with mixed content and variant option.

App Name
Card with primary color - 0 elevation and outlined button.
Some quick example text to build on the card title and make up the bulk of the card's content.
App Name
Card with 5 elevation, flat button and progress loader.
Some quick example text to build on the card title and make up the bulk of the card's content.

Card Body

The building block of a card is the text prop. Use it whenever you need a padded section within a card.

This is some text within a card body.

Variant

The variant prop gives you easy access to several different card styles. Available variants are: elevated(default), flat, tonal, outlined, text, and plain.

Elevated
App Name
Greyhound divisely hello coldly fonwderfully
Tonal
App Name
Greyhound divisely hello coldly fonwderfully
Outlined
App Name
Greyhound divisely hello coldly fonwderfully

Color

Cards can be colored by using any of the builtin colors and contextual names using the color prop.

Primary
App Name
Greyhound divisely hello coldly fonwderfully
Error
App Name
Greyhound divisely hello coldly fonwderfully
Error
App Name
Greyhound divisely hello coldly fonwderfully

Elevation

The elevation property provides up to 24 levels of shadow depth. By default, cards rest at 2dp.

Card title
Card subtitle secondary text
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

Hover

When using the hover prop, the cards will increase its elevation when the mouse is hovered over them.

Card title
Card subtitle secondary text
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

Href

The card becomes an anchor with the href prop.

Disabled

The disabled prop can be added in order to prevent a user from interacting with the card.

Disabled card
The card stays disabled

Image

Apply a specific background image to the Card.

Card Title

Slots

The v-card component provides slots that enable you to customize content created by its props or to add additional content.
Slots give you greater control to customize the content of the v-card component while still taking advantage of the easy-to-use props.

Avatar and icon

You can use the prepend-avatar, append-avatar, prepend-iconand append-icon props or the prepend and append slots to place a v-icon that automatically injects the designated icon.

Icons
prepend-icon and append-icon
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod.
Icons
prepend and append
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod.
Avatars
prepend-avatar and append-avatar
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod.
Avatars
prepend and append
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod.

Card Reveal

Using v-expand-transition and a @click event you can have a card that reveals more information once the button is clicked, activating the hidden card to be revealed.

Word of the Day

el·ee·mos·y·nar·y

adjective

relating to or dependent on charity; charitable; charitable donations. Pertaining to alms.
"an eleemosynary educational institution."

Content wraping

The v-card component is useful for wrapping content.

Messages
Today
You @10:42am
Sure, I'll see you later.
John Doe @10:37am
Yeah, sure. Does 1:00pm work?
You @9:47am
Did you still want to grab lunch today?

Custom actions

With a simple conditional, you can easily add supplementary text that is hidden until opened.

Top western road trips
1,000 miles of wonder
I'm a thing. But, like most politicians, he promised more than he could deliver. You won't have time for sleeping, soldier, not with all the bed making you'll be doing. Then we'll go with that data file! Hey, you add a one and two zeros to that or we walk! You're going to do his laundry? I've got to find a way to escape.

Grids

Using grids, you can create beautiful layouts.

Pre-fab homes
Favorite road trips
Best airlines

Horizontal cards

Using a combination of flex and utility classes, cards can be made horizontal in a mobile-friendly and responsive way.

Unlimited music now
Listen to your favorite artists and albums whenever and wherever, online and offline.
Supermodel
Foster the People
Halcyon Days
Ellie Goulding

Media with text

Apply a specific background image to the Card.

Top 10 Australian beaches
Number 10
Whitehaven Beach
Whitsunday Island, Whitsunday Islands

Twiter Card

The v-card component has multiple children components that help you build complex examples without having to worry about spacing. This example is comprised of the v-card-title, v-card-text and v-card-actions components.

Twitter
"Turns out semicolon-less style is easier and safer in TS because most gotcha edge cases are type invalid as well."
Jon Dey
Vue Developer
256·45

Weather card

Using v-list-items and a v-slider, we are able to create a unique weather card. The list components ensure that we have consistent spacing and functionality while the slider component allows us to provide a useful interface of selection to the user.

Florida
Extreme Weather Alert
64°F
123 km/h
48%

Loading

Use an indeterminate v-progress-linear to indicate a loading state.

Cafe Badilico
Local Favorite
4.5 (413)
$ • Italian, Cafe
Small plates, salads & sandwiches - an intimate setting with 12 indoor seats plus patio seating.
Tonight's availability
5:30PM
7:30PM
8:00PM
9:00PM
CONTENTS
  • Introduction

  • Basic Example

  • Card Body

  • Variant

  • Color

  • Elevation

  • Hover

  • Href

  • Link

  • Disabled

  • Image

  • Slots

  • Card Reveal

  • Content wraping

  • Custom actions

  • Grids

  • Horizontal cards

  • Media with text

  • Twiter card

  • Weather card

  • Loading