card

Card

Frames related content such as a product or an order, with header, title, description, action, image, content and footer parts.

States: Default

Parts

PartFileDoes
CardCard.vueGroups related content, such as a product or an order, into one framed block.
CardActionCardAction.vueHolds a control placed at the end of the card header.
CardContentCardContent.vueHolds the main content of the card.
CardDescriptionCardDescription.vueShows secondary text below the card title.
CardFooterCardFooter.vueHolds the closing content of the card, such as status or buttons.
CardHeaderCardHeader.vueGroups the title, description and action at the top of the card.
CardImageCardImage.vueShows a picture across the top of the card.
CardTitleCardTitle.vueNames what the card is about.

Anatomy

<Card>
  <CardImage />
  <CardHeader>
    <CardTitle />
    <CardDescription />
    <CardAction />
  </CardHeader>
  <CardContent />
  <CardFooter />
</Card>

Styling

PartRecipe
Cardcard
CardActioncard-action
CardContentcard-content
CardDescriptioncard-description
CardFootercard-footer
CardHeadercard-header
CardTitlecard-title

Install

Writes 9 files into components/ui/card/. For agents, npx @frontic/ui docs card prints this reference as markdown; the MCP server serves the same.

npm packages
class-variance-authority
reka-ui

API reference

Card Card.vue

Groups related content, such as a product or an order, into one framed block. Renders a <div>.

PropTypeDefault
asChildbooleanfalse
asAsTag | Component'div'
surface'raised' | 'bare''raised'
classClassValue—
Data attributeValues
data-surface'raised' | 'bare'
Recipe cardSets
base: card 14 properties · 9 inherited
surface: bare 6 properties

CardAction CardAction.vue

CardContent CardContent.vue

CardDescription CardDescription.vue

CardFooter CardFooter.vue

CardHeader CardHeader.vue

CardImage CardImage.vue

CardTitle CardTitle.vue

Example