mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-25 00:08:27 +08:00
12 lines
334 B
TypeScript
12 lines
334 B
TypeScript
import React from 'react';
|
|
import { UploadOutlined } from '@ant-design/icons';
|
|
import { Button, Upload } from 'antd';
|
|
|
|
const App: React.FC = () => (
|
|
<Upload action="https://660d2bd96ddfa2943b33731c.mockapi.io/api/upload" directory>
|
|
<Button icon={<UploadOutlined />}>Upload Directory</Button>
|
|
</Upload>
|
|
);
|
|
|
|
export default App;
|