UNPKG

@pubsweet/ui

Version:

React component library for use in pubsweet apps

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