Skip to content

Cards

Cards serve as containers for various web content. They offer a basic overview of the most relevant data for a subject or problem. It is important to arrange elements such as text and photos in a way that makes sense of hierarchy. Demo Here

Usage

Card components can vary to accommodate the many sorts of materials they carry. The following components are frequently seen in that variation.

  1. ECard
  2. ECardHeader
  3. ECardBody
  4. ECardFooter
vue

<template>
  <ECard>
    <ECardHeader>
      title
    </ECardHeader>
    <ECardBody>
      content
    </ECardBody>
    <ECardFooter>
      footer
    </ECardFooter>
  </ECard>
</template>

Props

For ECard component, the following props are available:

PropTypeDefaultNote
shadowBooleanfalseAdds shadow to the card.
widthString-Sets the card element's width.
heightString-Sets the card element's height.
paperBooleanfalseIt creates a paper shaped card.
squareBooleanfalseRemoves rounded corners of the element.
hrefString-This attribute creates a linked card.
to[String, Object]-This attribute creates a linked card.
targetString"_self"It specifies where to open the linked document. _self opens the linked document in the same frame as it was clicked.

For ECardHeader component, the following props are available:

PropTypeDefaultNote
squareBooleanfalseSquares the corners of the card.

Slots

Each Card component provide a default slot that enable you to customize the content.

SlotDescription
defaultThe default Vue slot.

COPYRIGHT