useFilePicker
useFilePicker copied to clipboard
Use directory picker hook
This PR adds a functionality of selecting the whole directory as an input in file picker with use of experimental webkitdirectory property. An initial version of this was proposed and described here #30.
TODO:
- update README with the description of useDirectoryPicker with examples
- [optional] update storybook
size-limit report 📦
| Path | Size |
|---|---|
| dist/use-file-picker.cjs.production.min.js | 5.63 KB (-0.07% 🔽) |
| dist/use-file-picker.esm.js | 6.16 KB (+0.42% 🔺) |
Closing this PR as there has been too many changes introduced by version 2.0.0. UseDirectoryPicker will be implemented later after 2.0.0 is shipped.