mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-15 08:59:15 +08:00
12 lines
340 B
TypeScript
12 lines
340 B
TypeScript
import React from 'react';
|
|
import { UploadOutlined } from '@ant-design/icons';
|
|
import { Button, Upload } from 'antd';
|
|
|
|
const App: React.FC = () => (
|
|
<Upload action="https://run.mocky.io/v3/435e224c-44fb-4773-9faf-380c5e6a2188" directory>
|
|
<Button icon={<UploadOutlined />}>Upload Directory</Button>
|
|
</Upload>
|
|
);
|
|
|
|
export default App;
|