ant-design/components/space/demo/debug.md
骗你是小猫咪 b8109bd20e
feat: 🆕 new Space component (#22363)
* feat: new component: Space

* add config-provider space doc

* fix lint fail

* revert test -u

* improve demo

* compatible invalidElement

* use inline-flex and wrap

* review change

* add space version

* improve classname

* review change

* review change
2020-03-22 11:38:02 +08:00

39 lines
616 B
Markdown

---
order: 99
title:
zh-CN: 多样的 Child
en-US: Diverse Child
debug: true
---
## zh-CN
Debug usage
## en-US
Debug usage
```jsx
import { Space, Button, Popconfirm } from 'antd';
ReactDOM.render(
<Space>
Button
<Button>Button</Button>
Button
<Popconfirm title="Are you sure delete this task?" okText="Yes" cancelText="No">
<Button>Delete</Button>
</Popconfirm>
<Popconfirm title="Are you sure delete this task?" okText="Yes" cancelText="No">
<Button disabled>Delete</Button>
</Popconfirm>
{null}
{false}
{1}
Button
</Space>,
mountNode,
);
```