ant-design/components/card/demo/flexible-content.md

35 lines
570 B
Markdown
Raw Normal View History

---
order: 3
title:
zh-CN: 更灵活的内容展示
en-US: Customized content
---
## zh-CN
可以利用 `Card.Meta` 支持更灵活的内容。
## en-US
You can use `Card.Meta` to support more flexible content.
````jsx
import { Card } from 'antd';
2018-06-27 15:55:04 +08:00
const { Meta } = Card;
ReactDOM.render(
<Card
2017-09-27 21:57:18 +08:00
hoverable
style={{ width: 240 }}
cover={<img alt="example" src="https://os.alipayobjects.com/rmsportal/QBnOOoLaAfKPirc.png" />}
>
<Meta
title="Europe Street beat"
description="www.instagram.com"
/>
2018-06-27 15:55:04 +08:00
</Card>,
mountNode);
````