card

Card

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

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

All of Card’s styles live in card.json. New to styling in Frontic UI? How styling works →

Install

npm packages
class-variance-authority
reka-ui

API reference

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

Props 4

PropTypeDefault
asChildbooleanfalse
asAsTag | Component'div'
surface'raised' | 'bare''raised'
classClassValue—

Data attributes 1

Data attributeValues
data-surface'raised' | 'bare'

Recipe card 2 groups

CardAction.vue

CardContent.vue

CardDescription.vue

CardFooter.vue

CardHeader.vue

CardImage.vue

CardTitle.vue
Card