Uppy
Installation
npm i react-dropzone-uploader
Script
import Dropzone from "react-dropzone-uploader"
import 'next-dropzone-uploader/dist/styles.css'
const Uppy = () => {
const handleSubmit = (files, allFiles) => {
allFiles.forEach(f => f.remove());
};
return (
<Dropzone
inputContent={"Drop files here or browse files"}
inputWithFilesContent={"Add more"}
submitButtonContent={"Save"}
onSubmit={handleSubmit}
/>
)
}