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 title
Some quick example text to build on the card title and make up the bulk of the card's content.
Titles, text, and links
Card titles are used by adding .card-title
to a <h*>
tag.
In the same way, links are added and placed next to each other by adding .card-link
to an <a>
tag.
Subtitles are used by adding a .card-subtitle
to a <h*>
tag.
If the .card-title
and the .card-subtitle
items are placed in a .card-body
(default slot contains a card-body
class) item, the card title and subtitle are aligned nicely.
Card title
Card subtitle
Some quick example text to build on the card title and make up the bulk of the card's content.
Card linkAnother linkImages
.card-img-top
places an image to the top of the card. With .card-text
, text can be added to the card.
Text within .card-text
can also be styled with the standard HTML tags.
Some quick example text to build on the card title and make up the bulk of the card's content.
List groups
Create lists of content in a card with a flush list group.
- Cras justo odio
- Dapibus ac facilisis in
- Vestibulum at eros
Header and footer
Special title treatment
With supporting text below as a natural lead-in to additional content.
Quote card
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.
Centered content
Special title treatment
With supporting text below as a natural lead-in to additional content.
Widget Card
The networking at Web Summit is like no other European tech conference.
Stats card
Messages
1058
StatsCard Slots
Name | Description |
---|---|
icon | Content for card icon |
default | Default card content |
footer | Content for card footer |
Card Slots
Name | Description |
---|---|
default | Content for card body |
header | Content for card header |
image | Content for card image (displayed above header) |
footer | Content for card footer |