1.0.37 • Published 4 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
4 years ago
1.0.36
4 years ago
1.0.35
4 years ago
1.0.33
4 years ago
1.0.32
4 years ago
1.0.31
4 years ago
1.0.30
4 years ago
1.0.34
4 years ago
1.0.28-blish
4 years ago
1.0.29
4 years ago
1.0.28
4 years ago
1.0.19
4 years ago
1.0.18
4 years ago
1.0.17
4 years ago
1.0.16
4 years ago
1.0.9
4 years ago
1.0.8
4 years ago
1.0.7
4 years ago
1.0.6
4 years ago
1.0.5
4 years ago
1.0.4
4 years ago
1.0.22
4 years ago
1.0.21
4 years ago
1.0.20
4 years ago
1.0.26
4 years ago
1.0.25
4 years ago
1.0.24
4 years ago
1.0.23
4 years ago
1.0.27
4 years ago
1.0.11
4 years ago
1.0.10
4 years ago
1.0.15
4 years ago
1.0.14
4 years ago
1.0.13
4 years ago
1.0.12
4 years ago
1.0.3
4 years ago
1.0.2
4 years ago
1.0.1
4 years ago
1.0.0
4 years ago