KarimMokhtar / react-drag-drop-files

Light and simple Reactjs drag and drop files library to use with very flexible options to change, so you put whatever the design you want for your drop-area. Users can drag and drop or even select the file anywhere in the window.
MIT License
245 stars 86 forks source link

feat: add required prop & dropzone keyboard focus indicator (#93) #94

Closed KieranGreenwood closed 1 year ago

KieranGreenwood commented 1 year ago

Summary

Improved keyboard support for accessibility. And added basic required support.

I use the FileUploader component to push multiple files into an array. If users don't submit any files, I want the form to be invalid.

Example:

<FileUploader required={filesArray.length === 0} />

Key Changes

Check List