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