Card
A content surface with multiple configurations.
By default, content is rendered inside a <div>, but this can be overriden by passing any valid tag name or component with the as prop.
Examples
Basic Card
<Card>
Just a white box!
</Card>
With Content and Footer


<Card>
<CardContent
image={<CardImage label={<Label ... />} ... />}
>
...
</CardContent>
<CardFooter>
<Button ... />
<Button ... />
</CardFooter>
</Card>
With Landscape Orientation

<Card
orientation="landscape"
>
...
</Card>
With Surface Colors






<Card
surface="..."
>
...
</Card>
With No Frame






<Card
...
frameless
>
...
</Card>
Media Card

Title goes here

Title goes here
Adipisicing esse velit pariatur commodo exercitation do esse laboris consequat anim in ea. Consequat velit tempor fugiat dolor excepteur id dolore sunt commodo dolore mollit do laborum. Lorem laborum excepteur duis quis minim qui tempor velit id id.
Dolore est excepteur qui dolor ipsum occaecat officia anim Lorem pariatur et et mollit ad. Incididunt nostrud excepteur eiusmod excepteur esse. Velit sint nulla proident occaecat est consequat reprehenderit Lorem enim aliquip.
Title goes here

Title goes here
Adipisicing esse velit pariatur commodo exercitation do esse laboris consequat anim in ea.

<MediaCard
orientation="portrait(default)|landscape"
>
<MediaCardContent
image={<CardImage aspectRatio="..." ... />}
label={<Label ... />}
title="Title goes here"
tags={<CardTags ... />}
meta={<CardMeta ... />}
>
Body copy goes here
</MediaCardContent>
</MediaCard>
Before & After Card


Title goes here


Title goes here
Adipisicing esse velit pariatur commodo exercitation do esse laboris consequat anim in ea. Consequat velit tempor fugiat dolor excepteur id dolore sunt commodo dolore mollit do laborum. Lorem laborum excepteur duis quis minim qui tempor velit id id.
<BeforeAfterCard
orientation="portrait(default)|landscape"
>
<BeforeAfterCardContent
images={<BeforeAfterCardImages
aspectRatio="..."
beforeProps={{
src: '',
label: ''
}}
afterProps={{
src: '',
label: ''
}}
...
/>}
label={<Label ... />}
title="Title goes here"
rating={<CardRating readOnly ... />}
tags={<CardTags ... />}
meta={<CardMeta ... />}
>
Body copy goes here
</BeforeAfterCardContent>
</BeforeAfterCard>
Props
| Name | Type | Default Value | Required | Description |
|---|---|---|---|---|
frameless | boolean | false | No | Should the card have no frame? |
orientation | CardOrientation | "portrait" | "landscape" | CardOrientation.Portrait | No | Should the card be tall or wide? |
surface | "dark" | CardSurface | "white" | "light" | "brand-bold" | "brand-light" | "brand-lightest" | CardSurface.White | No | The surface color |