You are currently viewing the auto-generated docs from the bs4-dev branch. The docs for the current release are available at https://react-bootstrap.github.io/
Cards
Bootstrapโs cards provide a flexible and extensible content container with multiple variants and options.
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.
Card Title
Card Subtitle
Some quick example text to build on the card title and make up the bulk of the card's content.
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.
This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.
Card title
This card has supporting text below as a natural lead-in to additional content.
Card title
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>
<Card.Imgvariant="top"src="holder.js/100px160"/>
<Card.Body>
<Card.Title>Card title</Card.Title>
<Card.Text>
This is a wider card with supporting text below as a natural lead-in to
additional content. This content is a little bit longer.
</Card.Text>
</Card.Body>
<Card.Footer>
<smallclassName="text-muted">Last updated 3 mins ago</small>
</Card.Footer>
</Card>
<Card>
<Card.Imgvariant="top"src="holder.js/100px160"/>
<Card.Body>
<Card.Title>Card title</Card.Title>
<Card.Text>
This card has supporting text below as a natural lead-in to additional
content.{' '}
</Card.Text>
</Card.Body>
<Card.Footer>
<smallclassName="text-muted">Last updated 3 mins ago</small>
</Card.Footer>
</Card>
<Card>
<Card.Imgvariant="top"src="holder.js/100px160"/>
<Card.Body>
<Card.Title>Card title</Card.Title>
<Card.Text>
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.
</Card.Text>
</Card.Body>
<Card.Footer>
<smallclassName="text-muted">Last updated 3 mins ago</small>
This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.
Card title
This card has supporting text below as a natural lead-in to additional content.
Card title
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.
<CardDeck>
<Card>
<Card.Imgvariant="top"src="holder.js/100px160"/>
<Card.Body>
<Card.Title>Card title</Card.Title>
<Card.Text>
This is a wider card with supporting text below as a natural lead-in to
additional content. This content is a little bit longer.
</Card.Text>
</Card.Body>
<Card.Footer>
<smallclassName="text-muted">Last updated 3 mins ago</small>
</Card.Footer>
</Card>
<Card>
<Card.Imgvariant="top"src="holder.js/100px160"/>
<Card.Body>
<Card.Title>Card title</Card.Title>
<Card.Text>
This card has supporting text below as a natural lead-in to additional
content.{' '}
</Card.Text>
</Card.Body>
<Card.Footer>
<smallclassName="text-muted">Last updated 3 mins ago</small>
</Card.Footer>
</Card>
<Card>
<Card.Imgvariant="top"src="holder.js/100px160"/>
<Card.Body>
<Card.Title>Card title</Card.Title>
<Card.Text>
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.
</Card.Text>
</Card.Body>
<Card.Footer>
<smallclassName="text-muted">Last updated 3 mins ago</small>
This is a longer 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.
Card title
This card has supporting text below as a natural lead-in to additional content.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.
Card title
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.
Card title
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.
Last updated 3 mins ago
<CardColumns>
<Card>
<Card.Imgvariant="top"src="holder.js/100px160"/>
<Card.Body>
<Card.Title>Card title that wraps to a newline</Card.Title>
<Card.Text>
This is a longer card with supporting text below as a natural lead-in to
additional content. This content is a little bit longer.
</Card.Text>
</Card.Body>
</Card>
<CardclassName="p-3">
<blockquoteclassName="blockquote mb-0 card-body">
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere
erat a ante.
</p>
<footerclassName="blockquote-footer">
<smallclassName="text-muted">
Someone famous in<citetitle="Source Title">Source Title</cite>
</small>
</footer>
</blockquote>
</Card>
<Card>
<Card.Imgvariant="top"src="holder.js/100px160"/>
<Card.Body>
<Card.Title>Card title</Card.Title>
<Card.Text>
This card has supporting text below as a natural lead-in to additional
content.{' '}
</Card.Text>
</Card.Body>
<Card.Footer>
<smallclassName="text-muted">Last updated 3 mins ago</small>
Change the underlying component CSS base class name and modifier class names prefix. This is an escape hatch for working with heavily customized bootstrap css.
import Card from 'react-bootstrap/Card'Copy import code for the Card component
Name
Type
Default
Description
as
elementType
<div>
You can use a custom element type for this component.
bsPrefix required
string
'card-body'
Change the underlying component CSS base class name and modifier class names prefix. This is an escape hatch for working with heavily customized bootstrap css.
import Card from 'react-bootstrap/Card'Copy import code for the Card component
Name
Type
Default
Description
as
elementType
<img>
You can use a custom element type for this component.
variant
'top' | 'bottom'
null
Defines image position inside
the card.
bsPrefix
string
'card-img'
Change the underlying component CSS base class name and modifier class names prefix. This is an escape hatch for working with heavily customized bootstrap css.
import Card from 'react-bootstrap/Card'Copy import code for the Card component
Name
Type
Default
Description
as
elementType
<div>
You can use a custom element type for this component.
bsPrefix required
string
'card-img-overlay'
Change the underlying component CSS base class name and modifier class names prefix. This is an escape hatch for working with heavily customized bootstrap css.
import CardDeck from 'react-bootstrap/CardDeck'Copy import code for the CardDeck component
Name
Type
Default
Description
as
elementType
<div>
You can use a custom element type for this component.
bsPrefix required
string
'card-deck'
Change the underlying component CSS base class name and modifier class names prefix. This is an escape hatch for working with heavily customized bootstrap css.
import CardGroup from 'react-bootstrap/CardGroup'Copy import code for the CardGroup component
Name
Type
Default
Description
as
elementType
<div>
You can use a custom element type for this component.
bsPrefix required
string
'card-group'
Change the underlying component CSS base class name and modifier class names prefix. This is an escape hatch for working with heavily customized bootstrap css.
import CardColumns from 'react-bootstrap/CardColumns'Copy import code for the CardColumns component
Name
Type
Default
Description
as
elementType
<div>
You can use a custom element type for this component.
bsPrefix required
string
'card-columns'
Change the underlying component CSS base class name and modifier class names prefix. This is an escape hatch for working with heavily customized bootstrap css.