1.0.37 • Published 3 years ago
@amodv/react-file-uploader v1.0.37
@amodv/react-file-uploader
File uploader with drag and drop functionality using HTML 5 and ReactJs
Install
npm install --save @amodv/react-file-uploader
Usage
import React, { Component } from "react";
import FileUploader from "@amodv/react-file-uploader";
import "@amodv/react-file-uploader/dist/index.css";
class ExampleComponent extends Component {
render() {
// pass all requied props
return <FileUploader {...props} />;
}
}
Props
props | description | required | default value |
---|---|---|---|
information | add the information text within the box(droppable area) | true | |
fileType | allowed files to be uploaded | true | image/* |
multiple | allow multiple files to be uploaded | true | true |
buttonLabel | set your button label | true | Select many files |
IconComponent | A react component which will be rendered within the droppable area. Example- any could image within span tag | false | |
enablePreview | if enabled preview will be shown | false | |
enableProgress | if enabled it will show the progress bar. Note: Currently not supported | false | |
removeIconClass | you can pass your own class name for close icon. Ex. font-awesome | true | |
existingFiles | Array type which will be passed as a prop, if enablePreview is set to true then preview will be rendered from existingFiles array. | true | |
onUploadFinish | A function which will update the parent component by passing Array. | true | |
onFileDelete | A function which updates parent which file is deleted from the preview | true |
License
MIT © Amod Vardhan
1.0.37
3 years ago
1.0.36
3 years ago
1.0.35
3 years ago
1.0.33
3 years ago
1.0.32
3 years ago
1.0.31
3 years ago
1.0.30
3 years ago
1.0.34
3 years ago
1.0.28-blish
3 years ago
1.0.29
3 years ago
1.0.28
3 years ago
1.0.19
3 years ago
1.0.18
3 years ago
1.0.17
3 years ago
1.0.16
3 years ago
1.0.9
3 years ago
1.0.8
3 years ago
1.0.7
3 years ago
1.0.6
3 years ago
1.0.5
3 years ago
1.0.4
3 years ago
1.0.22
3 years ago
1.0.21
3 years ago
1.0.20
3 years ago
1.0.26
3 years ago
1.0.25
3 years ago
1.0.24
3 years ago
1.0.23
3 years ago
1.0.27
3 years ago
1.0.11
3 years ago
1.0.10
3 years ago
1.0.15
3 years ago
1.0.14
3 years ago
1.0.13
3 years ago
1.0.12
3 years ago
1.0.3
3 years ago
1.0.2
3 years ago
1.0.1
3 years ago
1.0.0
3 years ago