Bunlong / react-papaparse

react-papaparse is the fastest in-browser CSV (or delimited text) parser for React. It is full of useful features such as CSVReader, CSVDownloader, readString, jsonToCSV, readRemoteFile, ... etc.
https://react-papaparse.js.org
MIT License
370 stars 61 forks source link

Expose dropFileRemoveButton styles in style interface #90

Open seans84 opened 3 years ago

seans84 commented 3 years ago

Here: https://github.com/Bunlong/react-papaparse/blob/master/src/CSVReader.tsx#L442 and https://github.com/Bunlong/react-papaparse/blob/master/src/CSVReader.tsx#L456 can you expose the option to pass in dropFileRemoveButton styling from the styles config?

I would like to position the remove button differently, but currently it is impossible to access it.

Something like this I think would work fine:

style={style.dropFileRemoveButton || styles.dropFileRemoveButton}
TimJJTing commented 3 years ago

Also need this feature!