import * as React from 'react'import { Card } from '@welcome-ui/card'const Example = () => {return (<Card maxWidth={400}><Card.Body>A card doesn’t have padding by default. To add padding to a card, you should wrap yourcontent in a <strong>Card.Body</strong> which has default <strong>padding</strong> of{' '}<strong>lg</strong>.</Card.Body></Card>)}export default Example
Installation
1
Run the following command:
yarn add @welcome-ui/card
2
Import component:
import { Card } from '@welcome-ui/card'
Content card
Picture card
A picture card, if you add a backgroundImage
on Card, it's displayed on cover.