File Selector
Installation
To install, type the following into the command line at the root of your project:
npm i @brighthr/component-file-selector
Import
Import into your file:
import FileSelector from '@brighthr/component-file-selector';
DropZone options
Uses React DropZone - dropZoneOptions
can be used to configure behavior, complete list here https://react-dropzone.js.org/#src
For example - to only allow selection of one file....
import FileSelector from '@brighthr/component-file-selector';
return () => <FileSelector dropZoneOptions={{ multiple: false}}/>;