Card

Card is a flexible container for grouping and displaying content. It supports custom backgrounds, borders, layouts, and composition via subcomponents for body, title, and actions. Use Card to present information in a visually distinct and organized way.

Basic Usage

Shoes

Shoes!

If a dog chews shoes whose shoes does he choose?
Code Example
Basic.vue

Card

The main wrapper for card content. Customize its appearance with props for border, layout, and size. Use with CardBody, CardTitle, and CardActions for best results.

Card Props Type Description
is
string | object | function

The HTML tag or component to render as the card root. Default is div.

border
boolean

Adds a border to the card (1px base-color).

dash
boolean

Adds a dashed border to the card.

side
boolean

Places the card body next to the image (horizontal layout).

imageFull
boolean

Places the image behind the card body.

size
string

Sets the card size to one of the below boolean props.

   
xl
boolean

Sets size to xl.

   
lg
boolean

Sets size to lg.

   
md
boolean

Sets size to md.

   
sm
boolean

Sets size to sm.

   
xs
boolean

Sets size to xs.

Card Slots Description
default

The default slot. Place CardBody, CardTitle, CardActions, images, or other content here.

CardBody

The main content area of the card. Use for text, images, or other elements you want inside the card. This component uses the Text component under the hood, so all Text props are also supported.

CardBody Props Type Description
is
string

The HTML tag to render as the CardBody root. Default is div.

CardBody Slots Description
default

The default slot. Content to be displayed inside the card body.

CardTitle

The title or heading for the card. Use for headings, section titles, or highlighted text. This component uses the Text component under the hood, so all Text props are also supported.

CardTitle Props Type Description
is
string

The HTML tag to render as the CardTitle root. Default is div.

CardTitle Slots Description
default

The default slot. Content to be displayed as the card title.

CardActions

The actions area of the card. Use for buttons, links, or any interactive elements related to the card. This component uses the Text component under the hood, so all Text props are also supported.

CardActions Props Type Description
is
string

The HTML tag to render as the CardActions root. Default is div.

CardActions Slots Description
default

The default slot. Content to be displayed as card actions (e.g., buttons).

Examples

Action on Top

Demonstrates a card with actions placed at the top of the card.

We are using cookies for no reason.
Code Example
ActionOnTop.vue

Border

Shows how to use the border prop to add a border to the card.

Shoes

Shoes!

If a dog chews shoes whose shoes does he choose?
Code Example
Border.vue

Centered

Centers card content vertically and horizontally.

Shoe

Shoes!

If a dog chews shoes whose shoes does he choose?
Code Example
Centered.vue

Custom Background

Applies a custom background color or image to the card.

Card title!

If a dog chews shoes whose shoes does he choose?
Code Example
CustomBackground.vue

Image at Bottom

Places the card image at the bottom.

Shoes!

If a dog chews shoes whose shoes does he choose?
Shoe
Code Example
ImageAtBottom.vue

Image Full

Places the image behind the card body using the imageFull prop.

Burger

Order a Big Kahuna Burger!

Use the app to get a 10% discount.
Code Example
ImageFull.vue

Neutral Background

Uses a neutral background color for the card.

Cookies!

We are using cookies for no reason.
Code Example
NeutralBackground.vue

No Image

A card layout without an image.

Card title!

If a dog chews shoes whose shoes does he choose?
Code Example
NoImage.vue

Responsive

Demonstrates responsive card layouts.

Spiderman

New album is released!

Click the button to listen on Spotiwhy app.
Code Example
Responsive.vue

Side

Places the card body next to the image using the side prop.

Spiderman

New movie is released!

Click the button to watch on Jetflix app.
Code Example
Side.vue

Side Right

Places the card body to the right of the image.

New movie is released!

Click the button to watch on Jetflix app.
Spiderman
Code Example
SideRight.vue

With Badge

Shows how to add a badge to a card for extra context or status.

Shoes

Shoes!
NEW

If a dog chews shoes whose shoes does he choose?
Fashion
Products
Code Example
WithBadge.vue

Premium

A pricing card with a badge, feature list, and subscribe button.

Most Popular
Premium
$29/mo
  • High-resolution image generation
  • Customizable style templates
  • Batch processing capabilities
  • AI-driven image enhancements
  • Seamless cloud integration
  • Real-time collaboration tools
  • Code Example
    Premium.vue

    Sizes

    Demonstrates all supported card sizes (xs, sm, md, lg, xl).

    Xsmall Card
    A card component has a figure, a body part, and inside body there are title and actions parts
    Small Card
    A card component has a figure, a body part, and inside body there are title and actions parts
    Medium Card
    A card component has a figure, a body part, and inside body there are title and actions parts
    Large Card
    A card component has a figure, a body part, and inside body there are title and actions parts
    Xlarge Card
    A card component has a figure, a body part, and inside body there are title and actions parts
    Code Example
    Sizes.vue

    A neutral card for cookie consent with accept/deny actions.

    Cookies!
    We are using cookies for no reason.
    Code Example
    Cookies.vue

    Movie Card

    A side card layout styled like a movie/album card with image and actions.

    Movie
    New movie is released!
    Click the button to watch on Jetflix app.
    Code Example
    Movie.vue

    Minimal

    A minimal card with only a title and actions.

    Minimal Card
    Code Example
    Minimal.vue

    Advanced Integration

    A card demonstrating integration with Avatar, Badge, and Button components.

    User avatar
    Verified
    Integration Example
    This card shows integration with Avatar, Badge, and a button.
    Code Example
    AdvancedIntegration.vue