Cards

A card is a flexible and extensible content container. It includes options for headers and footers, a wide variety of content, contextual background colors, and powerful display options. If you’re familiar with Bootstrap 3, cards replace our old panels, wells, and thumbnails. Similar functionality to those components is available as modifier classes for cards.

Example

Cards are built with as little markup and styles as possible, but still manage to deliver a ton of control and customization. Built with flexbox, they offer easy alignment and mix well with other Bootstrap components. They have no margin by default, so use spacing utilitiesopen in new window as needed.

Below is an example of a basic card with mixed content and a fixed width. Cards have no fixed width to start, so they’ll naturally fill the full width of its parent element. This is easily customized with our various sizing optionsopen in new window.

Image

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

Go somewhere

<Card
    title="Card Title"
    img-src="https://picsum.photos/600/300/?image=25"
    img-alt="Image"
    img-top
    tag="article"
    style="max-width: 20rem;"
    class="mb-2">
<CardText>
    Some quick example text to build on the card title and make up the bulk of the card's content.
</CardText>
<Button href="#" variant="primary">Go somewhere</Button>
</Card>
1
2
3
4
5
6
7
8
9
10
11
12
13
14

Content types

Cards support a wide variety of content, including images, text, list groups, links and more. The following are examples of what's supported inside a <Card>

Card body

The building block of a <Card> is the <CardBody> section which provides a padded section within a card.

By default the <Card> content is automatically placed in a <CardBody> section:

This is some content within the default <CardBody> block of the <Card> component. Notice the padding between the card's border and this gray <div>.

<Card no-body class="text-center">
<div class="bg-secondary text-light">
    This is some content without the default <samp>&lt;CardBody&gt;</samp> section. Notice the
    lack of padding between the card's border and this gray <samp>&lt;div&gt;</samp>.
</div>
</Card>
1
2
3
4
5
6
7

Disable the automatic <CardBody> section (and associated padding) by setting the prop no-body on the <Card>.

This is some content without the default `CardBody` section. Notice the lack of padding between the card's border and this gray <div>.

Note that with no-body enabled, the content of the title and sub-title props will not be rendered.

Use the <CardBody> sub-component to place your own card body anywhere in a <Card> component that has no-body set.

Card titles are adding via the title prop, and sub titles are added via the sub-title prop. The title is rendered using the sub-component <CardTitle> while the Sub Title is rendered using the sub-component <CardSubTitle>.

With sub-component <CardText>, paragraph text can be added to the card. The last <CardText> in the card body will have its bottom margin automatically removed (via CSS). Text within <CardText> can also be styled with the standard HTML tags.

Links can be added and placed next to each other by adding the .card-link class to a <a> tag (or <Link> component).

Card subtitle

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

A second paragraph of text in the card.

Card linkAnother link

<Card title="Card title" sub-title="Card subtitle" class="mb-3">
<CardText>
    Some quick example text to build on the <em>card title</em> and make up the bulk of the card's
    content.
</CardText>
<CardText>A second paragraph of text in the card.</CardText>
<a href="#" class="card-link">Card link</a>
<Link href="#" class="card-link">Another link</Link>
</Card>
1
2
3
4
5
6
7
8
9
10

Images

The <Card> prop img-src places an image on the top of the card, and use the img-alt prop to specify a string to be placed in the image's alt attribute. The image specified by the img-src prop will be responsive and will adjust its width when the width of the card is changed.

Alternatively you can manually place images inside <Card> using the sub-component <CardImg>. See the kitchen sink example below for usage.

Top and Bottom

Card image

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

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

Card image

Left and Right (or Start and End)

Card image

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

Card image

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


<div>
<div>
    <h4>Top and Bottom</h4>
    <CardGroup deck>
        <Card img-src="https://placekitten.com/1000/300" img-alt="Card image" img-top>
            <CardText>
                Some quick example text to build on the card and make up the bulk of the card's content.
            </CardText>
        </Card>

        <Card img-src="https://placekitten.com/1000/300" img-alt="Card image" img-bottom>
            <CardText>
                Some quick example text to build on the card and make up the bulk of the card's content.
            </CardText>
        </Card>
    </CardGroup>
</div>
<div class="mt-4">
    <h4>Left and Right (or Start and End)</h4>
    <Card img-src="https://placekitten.com/300/300" img-alt="Card image" img-left class="mb-3">
        <CardText>
            Some quick example text to build on the card and make up the bulk of the card's content.
        </CardText>
    </Card>

    <Card img-src="https://placekitten.com/300/300" img-alt="Card image" img-right>
        <CardText>
            Some quick example text to build on the card and make up the bulk of the card's content.
        </CardText>
    </Card>
</div>
</div>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33

Overlay image

Place the image in the background of the card by setting the boolean prop overlay:

Card Image

Subtitle

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


<Card
    overlay
    img-src="https://picsum.photos/900/250/?image=3"
    img-alt="Card Image"
    text-variant="white"
    title="Image Overlay"
    sub-title="Subtitle">
<CardText>
    Some quick example text to build on the card and make up the bulk of the card's content.
</CardText>
</Card>
1
2
3
4
5
6
7
8
9
10
11
12

List groups

Create lists of content in a card with a flush list group.

  • An item
  • A second item
  • A third item

<Card style="width: 18rem;" body-class="p-0">
<ListGroup flush>
    <ListGroupItem>An item</ListGroupItem>
    <ListGroupItem>A second item</ListGroupItem>
    <ListGroupItem>A third item</ListGroupItem>
</ListGroup>
</Card>
1
2
3
4
5
6
7
8
Card Header
  • An item
  • A second item
  • A third item

<Card style="width: 18rem;" no-body>
<CardHeader>
    Card Header
</CardHeader>
<ListGroup flush>
    <ListGroupItem>An item</ListGroupItem>
    <ListGroupItem>A second item</ListGroupItem>
    <ListGroupItem>A third item</ListGroupItem>
</ListGroup>
</Card>
1
2
3
4
5
6
7
8
9
10
11
  • An item
  • A second item
  • A third item

<Card style="width: 18rem;" no-body>
<ListGroup flush>
    <ListGroupItem>An item</ListGroupItem>
    <ListGroupItem>A second item</ListGroupItem>
    <ListGroupItem>A third item</ListGroupItem>
</ListGroup>
<CardFooter>Card Footer</CardFooter>
</Card>
1
2
3
4
5
6
7
8
9

Kitchen sink

Mix and match multiple content types to create the card you need, or throw everything in there. Shown below are image styles, blocks, text styles, and a list group—all wrapped in a fixed-width card.

...

Card title

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

  • An item
  • A second item
  • A third item

<Card style="width: 18rem;" no-body>
<img src="https://placekitten.com/380/200" class="card-img-top" alt="...">
<CardBody>
    <CardTitle>Card title</CardTitle>
    <CardText>Some quick example text to build on the card title and make up the bulk of the card's content.
    </CardText>
</CardBody>
<ListGroup flush>
    <ListGroupItem>An item</ListGroupItem>
    <ListGroupItem>A second item</ListGroupItem>
    <ListGroupItem>A third item</ListGroupItem>
</ListGroup>
<CardBody>
    <CardLink href="#">Card link</CardLink>
    <CardLink href="#">Another link</CardLink>
</CardBody>
</Card>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

Add an optional header and/or footer within a card via the header/footer props or named slots. You can control the wrapper element tags used by setting the header-tag and footer-tag props (both default is div)

featured

Header and footers using props.

Go somewhere
Card Footer

<Card
    header="featured"
    header-tag="header"
    footer="Card Footer"
    footer-tag="footer"
    title="Title">
<CardText>Header and footers using props.</CardText>
<Button href="#" variant="primary">Go somewhere</Button>
</Card>
1
2
3
4
5
6
7
8
9
10
Header Slot

Header and footers using slots.

Go somewhere
Footer Slot

<Card title="Title" class="mt-3" header-tag="header" footer-tag="footer">
<template #header>
    <h6 class="mb-0">Header Slot</h6>
</template>
<CardText>Header and footers using slots.</CardText>
<Button href="#" variant="primary">Go somewhere</Button>
<template #footer>
    <em>Footer Slot</em>
</template>
</Card>
1
2
3
4
5
6
7
8
9
10
11
Quote

A well-known quote, contained in a blockquote element.

Someone famous in Source Title

<Card header="Quote">
<blockquote class="blockquote mb-0">
    <p>A well-known quote, contained in a blockquote element.</p>
    <footer class="blockquote-footer">Someone famous in <cite title="Source Title">Source Title</cite></footer>
</blockquote>
</Card>
1
2
3
4
5
6
7
Featured

Special title treatment

With supporting text below as a natural lead-in to additional content.

Go somewhere

<Card class="text-center" header="Featured" footer="2 days ago">
<CardTitle class="card-title">Special title treatment</CardTitle>
<CardText class="card-text">With supporting text below as a natural lead-in to additional content.</CardText>
<a href="#" class="btn btn-primary">Go somewhere</a>
</Card>
1
2
3
4
5
6

Sizing

Cards assume no specific width to start, so they’ll be 100% wide unless otherwise stated. You can change this as needed with custom CSS, grid classes, grid Sass mixins, or utilities.

Using grid markup

Using the grid, wrap cards in columns and rows as needed.

Special title treatment

With supporting text below as a natural lead-in to additional content.

Go somewhere

Special title treatment

With supporting text below as a natural lead-in to additional content.

Go somewhere

<Row>
<Col sm="6">
    <Card>
        <CardTitle>Special title treatment</CardTitle>
        <CardText>With supporting text below as a natural lead-in to additional content.</CardText>
        <a href="#" class="btn btn-primary">Go somewhere</a>
    </Card>
</Col>
<Col sm="6">
    <Card>
        <CardTitle>Special title treatment</CardTitle>
        <CardText>With supporting text below as a natural lead-in to additional content.</CardText>
        <a href="#" class="btn btn-primary">Go somewhere</a>
    </Card>
</Col>
</Row>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17

Using utilities

Card title

With supporting text below as a natural lead-in to additional content.

Button

<Card class="w-75">
<CardTitle>Card title</CardTitle>
<CardText>With supporting text below as a natural lead-in to additional content.</CardText>
<a href="#" class="btn btn-primary">Button</a>
</Card>
1
2
3
4
5
6

Card title

With supporting text below as a natural lead-in to additional content.

Button

<Card class="w-50">
<CardTitle>Card title</CardTitle>
<CardText>With supporting text below as a natural lead-in to additional content.</CardText>
<a href="#" class="btn btn-primary">Button</a>
</Card>
1
2
3
4
5
6

Using custom CSS

Use custom CSS in your stylesheets or as inline styles to set a width.

Special title treatment

With supporting text below as a natural lead-in to additional content.

Go somewhere

<Card style="width: 18rem;">
<CardTitle>Special title treatment</CardTitle>
<CardText>With supporting text below as a natural lead-in to additional content.</CardText>
<a href="#" class="btn btn-primary">Go somewhere</a>
</Card>
1
2
3
4
5
6

Text alignment

You can quickly change the text alignment of any card—in its entirety or specific parts—with bootstrap's text align classesopen in new window

Special title treatment

With supporting text below as a natural lead-in to additional content.

Go somewhere

Special title treatment

With supporting text below as a natural lead-in to additional content.

Go somewhere

Special title treatment

With supporting text below as a natural lead-in to additional content.

Go somewhere

<Card style="width: 18rem;">
<CardTitle>Special title treatment</CardTitle>
<CardText>With supporting text below as a natural lead-in to additional content.</CardText>
<a href="#" class="btn btn-primary">Go somewhere</a>
</Card>

<Card style="width: 18rem;" class="text-center">
<CardTitle>Special title treatment</CardTitle>
<CardText>With supporting text below as a natural lead-in to additional content.</CardText>
<a href="#" class="btn btn-primary">Go somewhere</a>
</Card>

<Card style="width: 18rem;" class="text-end">
<CardTitle>Special title treatment</CardTitle>
<CardText>With supporting text below as a natural lead-in to additional content.</CardText>
<a href="#" class="btn btn-primary">Go somewhere</a>
</Card>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

Special title treatment

With supporting text below as a natural lead-in to additional content.

Go somewhere

<Card class="text-center">
<template #header>
    <Nav tabs class="card-header-tabs">
        <NavItem active href="#">Active</NavItem>
        <NavItem href="#">Link</NavItem>
        <NavItem href="#" disabled>Disabled</NavItem>
    </Nav>
</template>
<CardTitle>Special title treatment</CardTitle>
<CardText>With supporting text below as a natural lead-in to additional content.</CardText>
<a href="#" class="btn btn-primary">Go somewhere</a>
</Card>
1
2
3
4
5
6
7
8
9
10
11
12
13

Special title treatment

With supporting text below as a natural lead-in to additional content.

Go somewhere

<Card class="text-center">
<template #header>
    <Nav pills class="card-header-pills">
        <NavItem active href="#">Active</NavItem>
        <NavItem href="#">Link</NavItem>
        <NavItem href="#" disabled>Disabled</NavItem>
    </Nav>
</template>
<CardTitle>Special title treatment</CardTitle>
<CardText>With supporting text below as a natural lead-in to additional content.</CardText>
<a href="#" class="btn btn-primary">Go somewhere</a>
</Card>
1
2
3
4
5
6
7
8
9
10
11
12
13

Card styles

Cards include various options for customizing their backgrounds, borders, and color. text coloropen in new window and background utilitiesopen in new window are used under the hood to change the appearance of a card. You can directly use text coloropen in new window and background utilitiesopen in new window in this regard.

Solid

Primary

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Secondary

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Success

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Info

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Warning

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Danger

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Light

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Dark

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Default

Lorem ipsum dolor sit amet, consectetur adipiscing elit.


<CardGroup deck class="mt-3">
<Card bg-variant="primary" text-variant="white" header="Primary" class="text-center">
    <CardText>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</CardText>
</Card>

<Card bg-variant="secondary" text-variant="white" header="Secondary" class="text-center">
    <CardText>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</CardText>
</Card>

<Card bg-variant="success" text-variant="white" header="Success" class="text-center">
    <CardText>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</CardText>
</Card>
</CardGroup>
<CardGroup deck class="mt-3">
<Card bg-variant="info" text-variant="white" header="Info" class="text-center">
    <CardText>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</CardText>
</Card>

<Card bg-variant="warning" text-variant="white" header="Warning" class="text-center">
    <CardText>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</CardText>
</Card>

<Card bg-variant="danger" text-variant="white" header="Danger" class="text-center">
    <CardText>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</CardText>
</Card>
</CardGroup>
<CardGroup deck class="mt-3">
<Card bg-variant="light" header="Light" class="text-center">
    <CardText>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</CardText>
</Card>

<Card bg-variant="dark" header="Dark" text-variant="white" class="text-center">
    <CardText>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</CardText>
</Card>

<Card header="Default" class="text-center">
    <CardText>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</CardText>
</Card>
</CardGroup>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40

Bordered

Primary

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Secondary

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Success

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Info

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Warning

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Danger

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Light

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Dark

Lorem ipsum dolor sit amet, consectetur adipiscing elit.


<div>
<div>
    <CardGroup deck>
        <Card
            border-variant="primary"
            header="Primary"
            header-bg-variant="primary"
            header-text-variant="white"
            align="center">
            <CardText>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</CardText>
        </Card>

        <Card
            border-variant="secondary"
            header="Secondary"
            header-border-variant="secondary"
            align="center">
            <CardText>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</CardText>
        </Card>

        <Card border-variant="success" header="Success" align="center">
            <CardText>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</CardText>
        </Card>
    </CardGroup>
</div>
<div class="mt-3">
    <CardGroup deck>
        <Card border-variant="info" header="Info" align="center">
            <CardText>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</CardText>
        </Card>

        <Card
            border-variant="warning"
            header="Warning"
            header-bg-variant="transparent"
            align="center">
            <CardText>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</CardText>
        </Card>

        <Card
            border-variant="danger"
            header="Danger"
            header-border-variant="danger"
            header-text-variant="danger"
            align="center">
            <CardText>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</CardText>
        </Card>
    </CardGroup>
</div>
<div class="mt-3">
    <CardGroup deck class="mb-3">
        <Card border-variant="light" header="Light" class="text-center">
            <CardText>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</CardText>
        </Card>

        <Card border-variant="dark" header="Dark" align="center">
            <CardText>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</CardText>
        </Card>
    </CardGroup>
</div>
</div>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62

You can also apply the solid and border variants individually to card headers and footers via the header-bg-variant, header-border-variant, header-text-variant, footer-bg-variant, footer-border-variant, and footer-text-variant props.

Card Header

Header and footers variants.

Card Footer

<Card
    header="Card Header"
    header-text-variant="white"
    header-tag="header"
    header-bg-variant="dark"
    footer="Card Footer"
    footer-tag="footer"
    footer-bg-variant="success"
    footer-border-variant="dark"
    title="Title"
    style="max-width: 20rem;">
<CardText>Header and footers variants.</CardText>
</Card>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Header

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


<Card border-variant="success"
      header-border-variant="success"
      header="Header"
      header-bg-variant="transparent"
      body-text-variant="success"
      title="Success card title"
      footer="Footer"
      footer-bg-variant="transparent"
      footer-border-variant="success"
      class="mb-3" style="max-width: 18rem;">
<CardText>
    Some quick example text to build on the card title and make up the bulk of the card's content.
</CardText>
</Card>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

Card groups

In addition to styling the content within cards, wovoui includes a <CardGroup> component for laying out series of cards. For the time being, these layout options are not yet responsive.

Default card group

Use card groups to render cards as a single, attached element with equal width and height columns. Card groups use display: flex; to achieve their uniform sizing.

When using card groups with footers, their content will automatically line up.

Image

This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.

Image

This card has supporting text below as a natural lead-in to additional content.

Image

This is a wider card with supporting text below as a natural lead-in to additional content. This card has even longer content than the first to show that equal height action.


<CardGroup>
<Card title="Title" img-src="https://placekitten.com/g/300/200" img-alt="Image" img-top>
    <CardText>
        This is a wider card with supporting text below as a natural lead-in to additional content.
        This content is a little bit longer.
    </CardText>
    <template #footer>
        <small class="text-muted">Last updated 3 mins ago</small>
    </template>
</Card>

<Card title="Title" img-src="https://placekitten.com/g/300/200" img-alt="Image" img-top>
    <CardText>
        This card has supporting text below as a natural lead-in to additional content.
    </CardText>
    <template #footer>
        <small class="text-muted">Last updated 3 mins ago</small>
    </template>
</Card>

<Card title="Title" img-src="https://placekitten.com/g/300/200" img-alt="Image" img-top>
    <CardText>
        This is a wider card with supporting text below as a natural lead-in to additional content.
        This card has even longer content than the first to show that equal height action.
    </CardText>
    <template #footer>
        <small class="text-muted">Last updated 3 mins ago</small>
    </template>
</Card>
</CardGroup>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31

Card deck groups

Need a set of equal width and height cards that aren't attached to one another? Use card decks by setting the deck prop. And just like with regular card groups, card footers in decks will automatically line up.

Image

This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.

Image

This card has supporting text below as a natural lead-in to additional content.

Image

This is a wider card with supporting text below as a natural lead-in to additional content. This card has even longer content than the first to show that equal height action.


<CardGroup deck>
<Card title="Title" img-src="https://picsum.photos/300/200/?image=41" img-alt="Image" img-top>
    <CardText>
        This is a wider card with supporting text below as a natural lead-in to additional content.
        This content is a little bit longer.
    </CardText>
    <template #footer>
        <small class="text-muted">Last updated 3 mins ago</small>
    </template>
</Card>
<Card title="Title" img-src="https://picsum.photos/300/200/?image=41" img-alt="Image" img-top>
    <CardText>
        This card has supporting text below as a natural lead-in to additional content.
    </CardText>
    <template #footer>
        <small class="text-muted">Last updated 3 mins ago</small>
    </template>
</Card>
<Card title="Title" img-src="https://picsum.photos/300/200/?image=41" img-alt="Image" img-top>
    <CardText>
        This is a wider card with supporting text below as a natural lead-in to additional content.
        This card has even longer content than the first to show that equal height action.
    </CardText>
    <template #footer>
        <small class="text-muted">Last updated 3 mins ago</small>
    </template>
</Card>
</CardGroup>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29

Card column groups

Cards can be organized into Masonry-like columns with by wrapping them in a CardGroup with the prop columns set. Cards are built with CSS column properties instead of flexbox for easier alignment. Cards are ordered from top to bottom and left to right.

Heads up! Your mileage with card columns may vary. To prevent cards breaking across columns, we must set them to display: inline-block as column-break-inside: avoid isn't a bulletproof solution yet.

Image

This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.

Quote

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.

Someone famous in Source Title
Image

This card has supporting text below as a natural lead-in to additional content.

Last updated 3 mins ago

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.

Someone famous in Source Title

Title

This card has supporting text below as a natural lead-in to additional content.

Last updated 3 mins ago

Image
Image

This is a wider card with supporting text below as a natural lead-in to additional content. This card has even longer content than the first.


<CardGroup columns>
<Card
    title="Card title that wraps to a new line"
    img-src="https://placekitten.com/g/400/450"
    img-alt="Image"
    img-top>
    <CardText>
        This is a wider card with supporting text below as a natural lead-in to additional content.
        This content is a little bit longer.
    </CardText>
</Card>
<Card header="Quote">
    <blockquote class="blockquote mb-0">
        <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
        <footer class="blockquote-footer">
            Someone famous in <cite title="Source Title">Source Title</cite>
        </footer>
    </blockquote>
</Card>
<Card title="Title" img-src="https://placekitten.com/500/350" img-alt="Image" img-top>
    <CardText>
        This card has supporting text below as a natural lead-in to additional content.
    </CardText>
    <CardText class="small text-muted">Last updated 3 mins ago</CardText>
</Card>
<Card bg-variant="primary" text-variant="white">
    <blockquote class="card-blockquote">
        <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
        <footer>
            <small>Someone famous in <cite title="Source Title">Source Title</cite></small>
        </footer>
    </blockquote>
</Card>
<Card>
    <CardTitle>Title</CardTitle>
    <CardText>
        This card has supporting text below as a natural lead-in to additional content.
    </CardText>
    <CardText class="small text-muted">Last updated 3 mins ago</CardText>
</Card>
<Card img-src="https://picsum.photos/400/400/?image=41" img-alt="Image" overlay></Card>
<Card img-src="https://picsum.photos/400/200/?image=41" img-alt="Image" img-top>
    <CardText>
        This is a wider card with supporting text below as a natural lead-in to additional content.
        This card has even longer content than the first.
    </CardText>
    <template #footer>
        <small class="text-muted">Footer Text</small>
    </template>
</Card>
</CardGroup>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52

Component reference

PropertyTypeDefaultDescription
alignStringText alignment for the card's content: 'left', 'center' or 'right'
bg-variantStringApplies one of the Bootstrap theme color variants to the background
body-bg-variantStringApplies one of the Bootstrap theme color variants to the body background
body-border-variantStringApplies one of the Bootstrap theme color variants to the body border
body-classArray or Object or StringCSS class (or classes) to apply to the body
body-tagString'div'Specify the HTML tag to render instead of the default tag for the body
body-text-variantStringApplies one of the Bootstrap theme color variants to the body text
border-variantStringApplies one of the Bootstrap theme color variants to the border
footerStringText content to place in the footer
footer-bg-variantStringApplies one of the Bootstrap theme color variants to the footer background
footer-border-variantStringApplies one of the Bootstrap theme color variants to the footer border
footer-classArray or Object or StringCSS class (or classes) to apply to the footer
footer-tagString'div'Specify the HTML tag to render instead of the default tag for the footer
footer-text-variantStringApplies one of the Bootstrap theme color variants to the footer text
headerStringText content to place in the header
header-bg-variantStringApplies one of the Bootstrap theme color variants to the header background
header-border-variantStringApplies one of the Bootstrap theme color variants to the header border
header-classArray or Object or StringCSS class (or classes) to apply to the header
header-tagString'div'Specify the HTML tag to render instead of the default tag for the header
header-text-variantStringApplies one of the Bootstrap theme color variants to the header text
img-altStringValue to set the image attribute 'alt'
img-bottomBooleanfalseSet if the image should appear at the bottom of the card
img-endBooleanfalseSet if the image should appear at the end (right) of the card
img-heightString or NumberThe value to set on the image's 'height' attribute
img-leftBooleanfalse.Set if the image should appear at the start (left) of the card. Synonym for the 'left' prop
img-rightBooleanSet if the image should appear at the end (right) of the card. Synonym for the 'right' prop
img-srcStringURL for the optional image
img-startBooleanSet if the image should appear at the start (left) of the card
img-topBooleanSet if the image should appear at the top of the card