Skip to main content

Cards

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

Basic Example

Result
Loading...
Live Editor

Content types

Body

Use <Card.Body> to pad content inside a <Card>.

Result
Loading...
Live Editor

Alternatively, you can use this shorthand version for Cards with body only, and no other children

Result
Loading...
Live Editor

Using <Card.Title>, <Card.Subtitle>, and <Card.Text> inside the <Card.Body> will line them up nicely. <Card.Link>s are used to line up links next to each other.

<Card.Text> outputs <p> tags around the content, so you can use multiple <Card.Text>s to create separate paragraphs.

Result
Loading...
Live Editor

List Groups

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

Result
Loading...
Live Editor
Result
Loading...
Live Editor

Kitchen Sink

Result
Loading...
Live Editor

You may add a header by adding a <Card.Header> component.

Result
Loading...
Live Editor

A <CardHeader> can be styled by passing a heading element through the <as> prop

Result
Loading...
Live Editor
Result
Loading...
Live Editor
Result
Loading...
Live Editor

Images

Cards include a few options for working with images. Choose from appending “image caps” at either end of a card, overlaying images with card content, or simply embedding the image in a card.

Image caps

Similar to headers and footers, cards can include top and bottom “image caps”—images at the top or bottom of a card.

Result
Loading...
Live Editor

Image Overlays

Turn an image into a card background and overlay your card’s text. Depending on the image, you may or may not need additional styles or utilities.

Result
Loading...
Live Editor

Add some navigation to a card’s header (or block) with React Bootstrap’s Nav components.

Result
Loading...
Live Editor
Result
Loading...
Live Editor

Card Styles

Background Color

You can change a card's appearance by changing their <bg>, and <text> props.

Result
Loading...
Live Editor

Border Color

Result
Loading...
Live Editor

Card layout

Card Groups

Result
Loading...
Live Editor

Grid cards

Use Row's grid column props to control how many cards to show per row.

Result
Loading...
Live Editor

API

Card

CardBody

CardFooter

CardHeader

CardImg

CardImgOverlay

CardSubtitle

CardText

CardTitle

CardGroup