ant-design/ant-design

Configurable layout for Upload control

Open

#22,172 opened on Mar 12, 2020

View on GitHub
 (1 comment) (5 reactions) (0 assignees)TypeScript (98,031 stars) (54,612 forks)batch import
Inactivehelp wanted

Description

  • I have searched the issues of this repository and believe that this is not a duplicate.

What problem does this feature solve?

Permits customizing the render location of the Upload button/dragger separately from file list.

What does the proposed API look like?

Provide separate controls for file list and Upload button/dragger, so they can be arranged where needed. They can both live under an ancestor Upload.

<Upload>
  <MyLayout>
    <Upload.FileList/>
    <Upload.Dragger/>
  </MyLayout>
<Upload>

Contributor guide