mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-15 17:31:25 +08:00
e361b30ded
* 🎬 update Card demo * refactor card code * 🎬 update Tabs demo * update snapshot
812 B
812 B
order | title | ||||
---|---|---|---|---|---|
0 |
|
zh-CN
包含标题、内容、操作区域。
en-US
A basic card containing a title, content and an extra corner content. Supports two sizes: default
and small
.
import { Card } from 'antd';
ReactDOM.render(
<>
<Card title="Default size card" extra={<a href="#">More</a>} style={{ width: 300 }}>
<p>Card content</p>
<p>Card content</p>
<p>Card content</p>
</Card>
<Card size="small" title="Small size card" extra={<a href="#">More</a>} style={{ width: 300 }}>
<p>Card content</p>
<p>Card content</p>
<p>Card content</p>
</Card>
</>,
mountNode,
);