mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-16 01:29:11 +08:00
38 lines
669 B
Markdown
38 lines
669 B
Markdown
---
|
|
order: 0
|
|
title:
|
|
zh-CN: 基本用法
|
|
en-US: Basic Usage
|
|
---
|
|
|
|
## zh-CN
|
|
|
|
相邻组件水平间距。
|
|
|
|
## en-US
|
|
|
|
Crowded components horizontal spacing.
|
|
|
|
```tsx
|
|
import { UploadOutlined } from '@ant-design/icons';
|
|
import { Button, Popconfirm, Space, Upload } from 'antd';
|
|
import React from 'react';
|
|
|
|
const App: React.FC = () => (
|
|
<Space>
|
|
Space
|
|
<Button type="primary">Button</Button>
|
|
<Upload>
|
|
<Button>
|
|
<UploadOutlined /> Click to Upload
|
|
</Button>
|
|
</Upload>
|
|
<Popconfirm title="Are you sure delete this task?" okText="Yes" cancelText="No">
|
|
<Button>Confirm</Button>
|
|
</Popconfirm>
|
|
</Space>
|
|
);
|
|
|
|
export default App;
|
|
```
|