ant-design/components/space/demo/base.md
2022-05-21 22:14:15 +08:00

669 B

order title
0
zh-CN en-US
基本用法 Basic Usage

zh-CN

相邻组件水平间距。

en-US

Crowded components horizontal spacing.

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;