React Csv Reader
Edit page
Home Usage
Playground Props

# CSVReader

Bare minimal example:

    import * as React from 'react'import CSVReader from 'react-csv-reader'const App: React.FC = () => (    <CSVReader parserOptions={{ header: true }} onFileLoaded={(data, fileInfo) => console.dir(data, fileInfo)} />)

##
Playground

<CSVReader parserOptions={{ header: true }} onFileLoaded={(data, fileInfo) => console.dir(data, fileInfo)} />

    <CSVReader  parserOptions={{ header: true }}  onFileLoaded={(data, fileInfo) => console.dir(data, fileInfo)}/>

## Props

accept
string
.csv, text/csv
cssClass
string
csv-reader-input
cssInputClass
string
csv-input
cssLabelClass
string
csv-label
fileEncoding
string
UTF-8
inputId
string
react-csv-reader-input
inputName
string
react-csv-reader-input
inputStyle
object
{}
label
ReactNode
onError
(error: Error) => void
() => {}
onFileLoaded
(data: any[], fileInfo: IFileInfo) => any
required
parserOptions
ParseConfig<any>
{} as PapaParse.ParseConfig
disabled
boolean
strict
boolean