Card Title
Some quick example text to build on the card title and make up the bulk of the card's content.
Go somewhereA 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.
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 components.
BCard has no fixed width to start, so they'll naturally fill the full width of its parent element. This is easily customized via styles or standard Bootstrap 5 sizing classes.
Change the default div root tag to any other HTML element by specifying via the tag prop.
Some quick example text to build on the card title and make up the bulk of the card's content.
Go somewhere<BCard
title="Card Title"
img-src="https://picsum.photos/id/25/600/300"
img-alt="Image"
img-top
tag="article"
style="max-width: 20rem"
>
<BCardText>
Some quick example text to build on the card title and make up the bulk of the card's content.
</BCardText>
<BButton
href="#card-overview"
variant="primary"
>Go somewhere</BButton
>
</BCard>Cards support a wide variety of content, including images, text, list groups, links and more. The following are examples of what is supported inside a BCard.
The building block of a BCard is the BCardBody section which provides a padded section within a card.
By default, the BCard content is automatically placed in a BCardBody section:
<BCard class="text-center">
<div class="bg-secondary text-light">
This is some content within the default <samp><BCardBody></samp> block of the
<samp><BCard></samp> component. Notice the padding between the card's border and this
gray <samp><div></samp>.
</div>
</BCard>Disable the automatic BCardBody section (and associated padding) by setting the prop no-body on the BCard.
<BCard
no-body
class="text-center"
>
<div class="bg-secondary text-light">
This is some content without the default <samp><BCardBody></samp> section. Notice the
lack of padding between the card's border and this gray <samp><div></samp>.
</div>
</BCard>Note that with no-body enabled, the content of the title and subtitle props will not be rendered.
Use the BCardBody sub-component to place your own card body anywhere in a BCard component that has no-body set.
Card titles are adding via the title prop, and sub titles are added via the subtitle prop. The title is rendered using the sub-component BCardTitle while the Sub Title is rendered using the sub-component BCardSubtitle.
With sub-component BCardText, paragraph text can be added to the card. The last BCardText in the card body will have its bottom margin automatically removed (via CSS). Text within BCardText 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 BLink component).
Some quick example text to build on the card title and make up the bulk of the card's content.
Go somewhere<BCard
title="Card Title"
img-src="https://picsum.photos/600/300/?image=25"
img-alt="Image"
img-top
tag="article"
style="max-width: 20rem"
>
<BCardText>
Some quick example text to build on the card title and make up the bulk of the card's content.
</BCardText>
<BButton
href="#card-parts"
variant="primary"
>Go somewhere</BButton
>
</BCard>The BCard 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 BCard using the sub-component BCardImg. See the kitchen sink example below for usage.
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.
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.
<div>
<h4>Top and Bottom</h4>
<BCardGroup deck>
<BCard
img-src="https://picsum.photos/1000/300"
img-alt="Card image"
img-top
>
<BCardText>
Some quick example text to build on the card and make up the bulk of the card's content.
</BCardText>
</BCard>
<BCard
img-src="https://picsum.photos/1000/300"
img-alt="Card image"
img-bottom
>
<BCardText>
Some quick example text to build on the card and make up the bulk of the card's content.
</BCardText>
</BCard>
</BCardGroup>
</div>
<div class="mt-4">
<h4>Left and Right (or Start and End)</h4>
<BCard
img-src="https://picsum.photos/300/300"
img-alt="Card image"
img-left
class="mb-3"
>
<BCardText>
Some quick example text to build on the card and make up the bulk of the card's content.
</BCardText>
</BCard>
<BCard
img-src="https://picsum.photos/300/300"
img-alt="Card image"
img-right
>
<BCardText>
Some quick example text to build on the card and make up the bulk of the card's content.
</BCardText>
</BCard>
</div>Note: For left and right images, you may need to apply additional styles to classes .card-img-start and .card-img-end, as images will "stretch" in height if you have content that is taller than your image. Note headers and footers are not supported when images are left or right aligned. You may find the Horizontal Card Layout example to be more flexible when creating a responsive horizontal card.
Place the image in the background of the card by setting the boolean prop overlay:
Some quick example text to build on the card and make up the bulk of the card's content.
<BCard
overlay
img-src="https://picsum.photos/900/250/?image=3"
img-alt="Card Image"
text-variant="white"
title="Image Overlay"
subtitle="Subtitle"
>
<BCardText>
Some quick example text to build on the card and make up the bulk of the card's content.
</BCardText>
</BCard>BCardImgLazy has been removed in favor of using a standalone prop on BImg. Use prop lazy on BImg and it will automatically use the browsers built in lazy-loading features that are supported natively on all major browsers.
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).
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.
Some quick example text to build on the card title and make up the bulk of the card's content.
<BCard
no-body
style="max-width: 20rem"
img-src="https://picsum.photos/380/200"
img-alt="Image"
img-top
>
<template #header>
<h4 class="mb-0">Hello World</h4>
</template>
<BCardBody>
<BCardTitle>Card Title</BCardTitle>
<BCardSubtitle class="mb-2">Card Sub Title</BCardSubtitle>
<BCardText>
Some quick example text to build on the card title and make up the bulk of the card's
content.
</BCardText>
</BCardBody>
<BListGroup flush>
<BListGroupItem>Cras justo odio</BListGroupItem>
<BListGroupItem>Dapibus ac facilisis in</BListGroupItem>
<BListGroupItem>Vestibulum at eros</BListGroupItem>
</BListGroup>
<BCardBody>
<a
href="#card-kitchen-sink"
class="card-link"
>Card link</a
>
<a
href="#card-kitchen-sink"
class="card-link"
>Another link</a
>
</BCardBody>
<BCardFooter>This is a footer</BCardFooter>
<BCardImg
src="https://picsum.photos/480/210"
alt="Image"
bottom
/>
</BCard>Using a combination of grid components, utility classes and individual card sub-components, cards can be made horizontal in a mobile-friendly and responsive way.
In the example below, we remove the row grid gutters with the class="g-0" prop on BRow and use md props on BCol to make the card horizontal at the md breakpoint. Class rounded-0 removes the rounding of the BCardImg corners while class overflow-hidden on BCard will appropriately clip the image's corners based on the border-radius of the card. Further adjustments may be needed depending on your card content.
This is a wider card with supporting text as a natural lead-in to additional content. This content is a little bit longer.
<BCard
no-body
class="overflow-hidden"
style="max-width: 540px"
>
<BRow class="g-0">
<BCol md="6">
<BCardImg
src="https://picsum.photos/400/400/?image=20"
alt="Image"
class="rounded-0"
/>
</BCol>
<BCol md="6">
<BCardBody title="Horizontal Card">
<BCardText>
This is a wider card with supporting text as a natural lead-in to additional content.
This content is a little bit longer.
</BCardText>
</BCardBody>
</BCol>
</BRow>
</BCard>By default, cards use dark text and assume a light background. You can reverse that by toggling the color of text within, as well as that of the card's sub-components, via the prop text-variant. Then, specify a dark background variant.
<BCard
bg-variant="dark"
text-variant="white"
title="Card Title"
>
<BCardText> With supporting text below as a natural lead-in to additional content. </BCardText>
<BButton
href="#card-text-variants"
variant="primary"
>Go somewhere</BButton
>
</BCard>Cards include their own variant style for quickly changing the background-color and of a card via the bg-variant and border-variant props. Darker solid variants may require setting the prop text-variant to adjust the text color.
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
<div>
<BCardGroup deck>
<BCard
bg-variant="primary"
text-variant="white"
header="Primary"
class="text-center"
>
<BCardText>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</BCardText>
</BCard>
<BCard
bg-variant="secondary"
text-variant="white"
header="Secondary"
class="text-center"
>
<BCardText>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</BCardText>
</BCard>
<BCard
bg-variant="success"
text-variant="white"
header="Success"
class="text-center"
>
<BCardText>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</BCardText>
</BCard>
</BCardGroup>
</div>
<div class="mt-3">
<BCardGroup deck>
<BCard
bg-variant="info"
text-variant="white"
header="Info"
class="text-center"
>
<BCardText>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</BCardText>
</BCard>
<BCard
bg-variant="warning"
text-variant="white"
header="Warning"
class="text-center"
>
<BCardText>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</BCardText>
</BCard>
<BCard
bg-variant="danger"
text-variant="white"
header="Danger"
class="text-center"
>
<BCardText>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</BCardText>
</BCard>
</BCardGroup>
</div>
<div class="mt-3">
<BCardGroup deck>
<BCard
bg-variant="light"
header="Light"
class="text-center"
>
<BCardText>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</BCardText>
</BCard>
<BCard
bg-variant="dark"
header="Dark"
text-variant="white"
class="text-center"
>
<BCardText>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</BCardText>
</BCard>
<BCard
header="Default"
class="text-center"
>
<BCardText>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</BCardText>
</BCard>
</BCardGroup>
</div>Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
<div>
<BCardGroup deck>
<BCard
border-variant="primary"
header="Primary"
header-bg-variant="primary"
header-text-variant="white"
align="center"
>
<BCardText>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</BCardText>
</BCard>
<BCard
border-variant="secondary"
header="Secondary"
header-border-variant="secondary"
align="center"
>
<BCardText>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</BCardText>
</BCard>
<BCard
border-variant="success"
header="Success"
align="center"
>
<BCardText>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</BCardText>
</BCard>
</BCardGroup>
</div>
<div class="mt-3">
<BCardGroup deck>
<BCard
border-variant="info"
header="Info"
align="center"
>
<BCardText>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</BCardText>
</BCard>
<BCard
border-variant="warning"
header="Warning"
align="center"
>
<BCardText>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</BCardText>
</BCard>
<BCard
border-variant="danger"
header="Danger"
header-border-variant="danger"
header-text-variant="danger"
align="center"
>
<BCardText>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</BCardText>
</BCard>
</BCardGroup>
</div>
<div class="mt-3">
<BCardGroup
deck
class="mb-3"
>
<BCard
border-variant="light"
header="Light"
class="text-center"
>
<BCardText>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</BCardText>
</BCard>
<BCard
border-variant="dark"
header="Dark"
align="center"
>
<BCardText>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</BCardText>
</BCard>
</BCardGroup>
</div>bootstrap-vue-next BCard variants are directly mapped to Bootstrap v5 card classes by pre-pending bg- (for solid) or border- (for bordered) to the above variant names.
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.
Using color to add meaning only provides a visual indication, which will not be conveyed to users of assistive technologies – such as screen readers. Ensure that information denoted by the color is either obvious from the content itself (e.g. the visible text), or is included through alternative means, such as additional text hidden with the .visually-hidden class.
Integrate BNav into card headers easily.
Using the header slot:
Using BCardHeader sub-component:
For more information on using BNav in card headers, refer to the Navs documentation.
In addition to styling the content within cards, BootstrapVueNext includes a BCardGroup component for laying out series of cards.
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.
This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.
This card has supporting text below as a natural lead-in to additional content.
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.
<BCardGroup>
<BCard
title="Title"
img-src="https://picsum.photos/g/300/450"
img-alt="Image"
img-top
>
<BCardText>
This is a wider card with supporting text below as a natural lead-in to additional content.
This content is a little bit longer.
</BCardText>
<template #footer>
<small class="text-body-secondary">Last updated 3 mins ago</small>
</template>
</BCard>
<BCard
title="Title"
img-src="https://picsum.photos/g/300/450"
img-alt="Image"
img-top
>
<BCardText>
This card has supporting text below as a natural lead-in to additional content.
</BCardText>
<template #footer>
<small class="text-body-secondary">Last updated 3 mins ago</small>
</template>
</BCard>
<BCard
title="Title"
img-src="https://picsum.photos/g/300/450"
img-alt="Image"
img-top
>
<BCardText>
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.
</BCardText>
<template #footer>
<small class="text-body-secondary">Last updated 3 mins ago</small>
</template>
</BCard>
</BCardGroup>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.
This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.
This card has supporting text below as a natural lead-in to additional content.
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.
<BCardGroup deck>
<BCard
title="Title"
img-src="https://picsum.photos/300/300/?image=41"
img-alt="Image"
img-top
>
<BCardText>
This is a wider card with supporting text below as a natural lead-in to additional content.
This content is a little bit longer.
</BCardText>
<template #footer>
<small class="text-body-secondary">Last updated 3 mins ago</small>
</template>
</BCard>
<BCard
title="Title"
img-src="https://picsum.photos/300/300/?image=41"
img-alt="Image"
img-top
>
<BCardText>
This card has supporting text below as a natural lead-in to additional content.
</BCardText>
<template #footer>
<small class="text-body-secondary">Last updated 3 mins ago</small>
</template>
</BCard>
<BCard
title="Title"
img-src="https://picsum.photos/300/300/?image=41"
img-alt="Image"
img-top
>
<BCardText>
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.
</BCardText>
<template #footer>
<small class="text-body-secondary">Last updated 3 mins ago</small>
</template>
</BCard>
</BCardGroup>Cards can be organized into Masonry-like columns with by wrapping them in a BCardGroup 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 is not a bulletproof solution yet.
This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.
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.
This card has supporting text below as a natural lead-in to additional content.
Last updated 3 mins ago
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.
<BCardGroup columns>
<BCard
title="Card title that wraps to a new line"
img-src="https://picsum.photos/g/400/450"
img-alt="Image"
img-top
>
<BCardText>
This is a wider card with supporting text below as a natural lead-in to additional content.
This content is a little bit longer.
</BCardText>
</BCard>
<BCard 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>
</BCard>
<BCard
title="Title"
img-src="https://picsum.photos/500/350"
img-alt="Image"
img-top
>
<BCardText>
This card has supporting text below as a natural lead-in to additional content.
</BCardText>
<BCardText class="small text-body-secondary">Last updated 3 mins ago</BCardText>
</BCard>
<BCard
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>
</BCard>
<BCard>
<BCardTitle>Title</BCardTitle>
<BCardText>
This card has supporting text below as a natural lead-in to additional content.
</BCardText>
<BCardText class="small text-body-secondary">Last updated 3 mins ago</BCardText>
</BCard>
<BCard
img-src="https://picsum.photos/400/400/?image=41"
img-alt="Image"
overlay
/>
<BCard
img-src="https://picsum.photos/400/200/?image=41"
img-alt="Image"
img-top
>
<BCardText>
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.
</BCardText>
<template #footer>
<small class="text-body-secondary">Footer Text</small>
</template>
</BCard>
</BCardGroup><BCard>| Prop | Type | Default | Description |
|---|---|---|---|
| align | AlignmentTextHorizontal | undefined | Text alignment for the card's content: 'start', 'center' or 'end' |
| bg-variant | ColorVariant | null | null | Applies one of the Bootstrap theme color variants to background of the component |
| body-bg-variant | ColorVariant | null | undefined | Applies one of the Bootstrap theme color variants to the body background |
| body-border-variant | ColorVariant | null | undefined | Applies one of the Bootstrap theme color variants to the body border (NYI?) |
| body-class | ClassValue | undefined | CSS class (or classes) to apply to the body |
| body-tag | string | 'div' | Specify the HTML tag to render instead of the default tag for the body |
| body-text | string | '''' | Text content to place in the card body, default slot takes precedence |
| body-text-variant | TextColorVariant | null | undefined | Applies one of the Bootstrap theme color variants to the body text |
| border-variant | ColorVariant | null | undefined | Applies one of the Bootstrap theme color variants to the border |
| footer | string | undefined | Text content to place in the footer |
| footer-bg-variant | ColorVariant | null | undefined | Applies one of the Bootstrap theme color variants to the footer background |
| footer-border-variant | ColorVariant | null | undefined | Applies one of the Bootstrap theme color variants to the footer border |
| footer-class | ClassValue | undefined | CSS class (or classes) to apply to the footer |
| footer-tag | string | 'div' | Specify the HTML tag to render instead of the default tag for the footer |
| footer-text-variant | TextColorVariant | null | undefined | Applies one of the Bootstrap theme color variants to the footer text |
| footer-variant | ColorVariant | null | undefined | Applies one of the Bootstrap theme color variants to the footer |
| header | string | undefined | Text content to place in the header |
| header-bg-variant | ColorVariant | null | undefined | Applies one of the Bootstrap theme color variants to the header background |
| header-border-variant | ColorVariant | null | undefined | Applies one of the Bootstrap theme color variants to the header border |
| header-class | ClassValue | undefined | CSS class (or classes) to apply to the header |
| header-tag | string | 'div' | Specify the HTML tag to render instead of the default tag for the header |
| header-text-variant | TextColorVariant | null | undefined | Applies one of the Bootstrap theme color variants to the header text |
| header-variant | ColorVariant | null | undefined | Applies one of the Bootstrap theme color variants to the header |
| img-alt | string | undefined | Alt text for the optional image |
| img-height | Numberish | undefined | The value to set on the image's 'height' attribute |
| img-placement | Placement | "overlay" | 'top' | Placement for the optional image ('top', 'bottom', 'start', 'end', or 'overlay') |
| img-src | string | undefined | URL for the optional image |
| img-width | Numberish | undefined | The value to set on the image's 'width' attribute |
| no-body | boolean | false | Disable rendering of the default inner card-body element |
| subtitle | string | undefined | Text content to place in the subtitle |
| subtitle-tag | string | 'h6' | Specify the HTML tag to render instead of the default tag for the subtitle |
| subtitle-text-variant | TextColorVariant | null | 'body-secondary' | Applies one of the Bootstrap theme color variants to the subtitle text |
| tag | string | 'div' | Specify the HTML tag to render instead of the default tag |
| text-variant | TextColorVariant | null | null | Applies one of the Bootstrap theme color variants to the text |
| title | string | undefined | Text content to place in the title |
| title-tag | string | 'h4' | Specify the HTML tag to render instead of the default tag for the title |
| variant | ColorVariant | null | null | Applies one of the Bootstrap theme color variants to the component. When implemented `bg-variant` and `text-variant` will take precedence |
| Name | Scope | Description |
|---|---|---|
| default | Content to place in the card | |
| footer | For custom rendering of footer content | |
| header | For custom rendering of header content | |
| img | For custom rendering of image content |
<BCardBody>.card‑body, .card‑img‑overlay| Prop | Type | Default | Description |
|---|---|---|---|
| bg-variant | ColorVariant | null | null | Applies one of the Bootstrap theme color variants to background of the component |
| overlay | boolean | false | |
| subtitle | string | undefined | Text content to place in the subtitle |
| subtitle-tag | string | 'h6' | Specify the HTML tag to render instead of the default tag for the subtitle |
| subtitle-text-variant | TextColorVariant | null | 'body-secondary' | Applies one of the Bootstrap theme color variants to the subtitle text |
| tag | string | 'div' | Specify the HTML tag to render instead of the default tag |
| text | string | undefined | Text content to place in the card body, default slot takes precedence |
| text-variant | TextColorVariant | null | null | Applies one of the Bootstrap theme color variants to the text |
| title | string | undefined | Text content to place in the title |
| title-tag | string | 'h4' | Specify the HTML tag to render instead of the default tag for the title |
| variant | ColorVariant | null | null | Applies one of the Bootstrap theme color variants to the component. When implemented `bg-variant` and `text-variant` will take precedence |
| Name | Scope | Description |
|---|---|---|
| default | Content to place in the card body | |
| subtitle | Content to place in the card subtitle | |
| title | Content to place in the card title |
<BCardFooter>.card‑footer| Prop | Type | Default | Description |
|---|---|---|---|
| bg-variant | ColorVariant | null | null | Applies one of the Bootstrap theme color variants to background of the component |
| border-variant | ColorVariant | null | undefined | Applies one of the Bootstrap theme color variants to the border |
| tag | string | 'div' | Specify the HTML tag to render instead of the default tag |
| text | string | undefined | Text content to place in the card footer, default slot takes precedence |
| text-variant | TextColorVariant | null | null | Applies one of the Bootstrap theme color variants to the text |
| variant | ColorVariant | null | null | Applies one of the Bootstrap theme color variants to the component. When implemented `bg-variant` and `text-variant` will take precedence |
| Name | Scope | Description |
|---|---|---|
| default | Content to place in the card footer |
<BCardGroup>.card‑deck, .card‑group, .card‑columns| Prop | Type | Default | Description |
|---|---|---|---|
| columns | boolean | false | When set, renders the card group in a masonry-like columnar style |
| deck | boolean | false | When set, renders the card group with gutters between cards |
| tag | string | 'div' | Specify the HTML tag to render instead of the default tag |
| Name | Scope | Description |
|---|---|---|
| default | Content (cards) to place in the card group |
<BCardHeader>.card‑header| Prop | Type | Default | Description |
|---|---|---|---|
| bg-variant | ColorVariant | null | null | Applies one of the Bootstrap theme color variants to background of the component |
| border-variant | ColorVariant | null | undefined | Applies one of the Bootstrap theme color variants to the border |
| tag | string | 'div' | Specify the HTML tag to render instead of the default tag |
| text | string | undefined | Text content to place in the card header, default slot takes precedence |
| text-variant | TextColorVariant | null | null | Applies one of the Bootstrap theme color variants to the text |
| variant | ColorVariant | null | null | Applies one of the Bootstrap theme color variants to the component. When implemented `bg-variant` and `text-variant` will take precedence |
| Name | Scope | Description |
|---|---|---|
| default | Content to place in the card header |
<BCardImg>.card‑img| Prop | Type | Default | Description |
|---|---|---|---|
| placement | Placement | "overlay" | 'top' |
<BCardSubtitle>.card‑subtitle| Prop | Type | Default | Description |
|---|---|---|---|
| tag | string | 'h6' | Specify the HTML tag to render instead of the default tag |
| text | string | undefined | Text content to place in the card subtitle, default slot takes precedence |
| text-variant | TextColorVariant | null | 'body-secondary' | Applies one of the Bootstrap theme color variants to the text |
| Name | Scope | Description |
|---|---|---|
| default | Content to place in the card subtitle |
<BCardText>.card‑text| Prop | Type | Default | Description |
|---|---|---|---|
| tag | string | 'p' | Specify the HTML tag to render instead of the default tag |
| text | string | undefined | Text content to place in the card text, default slot takes precedence |
| Name | Scope | Description |
|---|---|---|
| default | Content to place in the card text |
<BCardTitle>.card‑title| Prop | Type | Default | Description |
|---|---|---|---|
| tag | string | 'h4' | Specify the HTML tag to render instead of the default tag |
| text | string | undefined | Text content to place in the card title, default slot takes precedence |
| Name | Scope | Description |
|---|---|---|
| default | Content to place in the card title |