2016-05-26 17:46:55 +08:00
|
|
|
---
|
|
|
|
category: Components
|
|
|
|
type: Presentation
|
|
|
|
title: Card
|
2016-06-17 15:39:05 +08:00
|
|
|
cols: 1
|
2016-05-26 17:46:55 +08:00
|
|
|
---
|
|
|
|
|
|
|
|
Common card container.
|
|
|
|
|
|
|
|
## When to use
|
|
|
|
|
|
|
|
The most basic card container. You can use it to contain text, lists, pictures and paragraphs.
|
|
|
|
|
|
|
|
## API
|
|
|
|
|
|
|
|
```html
|
|
|
|
<Card title="Card title">Card content</Card>
|
|
|
|
```
|
|
|
|
|
|
|
|
| Property | Description | Type | Default |
|
|
|
|
|----------|----------------|----------|--------------|
|
|
|
|
| title | Card title | React.Element | - |
|
|
|
|
| extra | Corner content of card | React.Element | - |
|
|
|
|
| bordered | Whether a border is set | Boolean | true |
|
|
|
|
| bodyStyle | Custom style for content area | Object | - |
|