1.0.0 • Published 3 years ago

file-upload-modal v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

File Upload Modal

Select a csv file, preview, edit and/or delete rows before submitting.

file-upload-modal

Installation

yarn add file-upload-modal react-file-reader-input react-modal csvtojson

Usage

import UploadModal from 'file-upload-modal'

export const Upload = () => {
    const handleSave = (data) => {
        console.log(data)
    }
    return (
        <UploadModal onSave={handleSave} />
    )
}

Props

NameDescription
onSave (required)A function to receive the data (as json) of the selected file after editing
buttonComponent (optional)A button component to be rendered instead of the default button component
1.0.0

3 years ago

0.1.7

3 years ago

0.1.6

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago