Cards

Bootstrap's cards provide a flexible and extensible content container with multiple variants and options.

import {Card, StatsCard} from 'src/components'

Local usage

components: {
  Card,
  StatsCard
}

Global usage

Vue.component(Card)
Vue.component(StatsCard)

Example Card

Card image cap

Card title

Some quick example text to build on the card title and make up the bulk of the card's content.

<template>
  <card style="width: 20rem;">
    <img slot="image" class="card-img-top" src="data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D%22320%22%20height%3D%22180%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20320%20180%22%20preserveAspectRatio%3D%22none%22%3E%3Cdefs%3E%3Cstyle%20type%3D%22text%2Fcss%22%3E%23holder_1618c103586%20text%20%7B%20fill%3Argba(255%2C255%2C255%2C.75)%3Bfont-weight%3Anormal%3Bfont-family%3AHelvetica%2C%20monospace%3Bfont-size%3A16pt%20%7D%20%3C%2Fstyle%3E%3C%2Fdefs%3E%3Cg%20id%3D%22holder_1618c103586%22%3E%3Crect%20width%3D%22320%22%20height%3D%22180%22%20fill%3D%22%23777%22%3E%3C%2Frect%3E%3Cg%3E%3Ctext%20x%3D%22119.0859375%22%20y%3D%2297.35%22%3E320x180%3C%2Ftext%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E" alt="Card image cap">
    <div>
      <h4 class="card-title">Card title</h4>
      <p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
      <p-button type="primary">Go somewhere</p-button>
    </div>
  </card>
</template>

<script>
  export default {}
</script>

Stats card

Messages

1058

<template>
 <stats-card
   type="danger"
   title="1058"
   small-title="Messages"
   icon="nc-icon nc-globe">
   <span slot="footer">
     <i class="fa fa-check"></i>
     Update now
   </span>
 </stats-card>
</template>

<script>
  export default {}
</script>

StatsCard Slots

NameDescription
iconContent for card icon
defaultDefault card content
footerContent for card footer

Card Slots

NameDescription
defaultContent for card body
headerContent for card header
imageContent for card image (displayed above header)
footerContent for card footer