UNPKG

@pubsweet/ui

Version:

React component library for use in pubsweet apps

16 lines (14 loc) 332 B
A list of supplementary files, and a button to upload a new file. ```js const files = [ { name: faker.system.commonFileName(), url: faker.internet.url(), }, { name: faker.system.commonFileName(), url: faker.internet.url(), }, ] ;<Supplementary files={files} uploadFile={file => new XMLHttpRequest()} /> ```