Card
is used to contain information together. There are multiple ways to customize the content within the card. Cards are 100% wide unless otherwise stated.
For information on Card style and usage guidelines, check out Card Design Guidelines.
Example
This example includes all Card components, which are: Image
, Content
, Overline
, Title
, Subtitle
, Body
, Footer
. Unless it's media, put all content under Card.Content
to have the correct spacing within the Card.
Optional OverlineCard TitleOptional SubtitleHere is some optional text that you can include in the card’s body so you can learn more about what the card is supposed to be for.
A Card without Media but with 2 Links
You may pick and choose what elements may be inside the Card.
Common Props
Card
, Card.Content
, Card.Footer
includes COMMON
, BORDER
, FLEX
common props since they wrap around the Box component.
Card.Body
, Card.Title
, Card.Overline
, Card.Subtitle
includes COMMON
and TYPOGRAPHY
common props.
Read Common Props for details and API. These common props will override component props such as the color.
Component Props
All Card components include these props.
Prop name | Type | Default | Description |
---|---|---|---|
theme | Object | Bridge Theme | use to override default bridge theme |