ant-design/components/card/demo/border-less.md
MadCcc 6776bb8916
docs: demo support react18 (#34843)
* docs: update demo

* chore: add script

* test: fix demo test

* docs: convert demos

* chore: move script

* test: remove react-dom import

* chore: update deps

* docs: update riddle js

* test: fix image test

* docs: fix riddle demo
2022-04-03 23:27:45 +08:00

646 B

order title
1
zh-CN en-US
无边框 No border

zh-CN

在灰色背景上使用无边框的卡片。

en-US

A borderless card on a gray background.

import { Card } from 'antd';

export default () => (
  <div className="site-card-border-less-wrapper">
    <Card title="Card title" bordered={false} style={{ width: 300 }}>
      <p>Card content</p>
      <p>Card content</p>
      <p>Card content</p>
    </Card>
  </div>
);
.site-card-border-less-wrapper {
  padding: 30px;
  background: #ececec;
}