mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-12 23:35:38 +08:00
12 lines
328 B
TypeScript
12 lines
328 B
TypeScript
|
import React from 'react';
|
||
|
import { UploadOutlined } from '@ant-design/icons';
|
||
|
import { Button, Upload } from 'antd';
|
||
|
|
||
|
const App: React.FC = () => (
|
||
|
<Upload action="https://www.mocky.io/v2/5cc8019d300000980a055e76" directory>
|
||
|
<Button icon={<UploadOutlined />}>Upload Directory</Button>
|
||
|
</Upload>
|
||
|
);
|
||
|
|
||
|
export default App;
|