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
363 stars 60 forks source link

Possible to add CSVDownloader button attributes? #131

Open brandondurham opened 2 years ago

brandondurham commented 2 years ago

I’d like to add some custom attributes (className, data-* attributes, etc.) to the button that CSVDownloader renders. Is this possible?

TimJJTing commented 1 year ago

Looking forward to having this feature too! I'm also wondering, would it be even better to export download() from useCSVDownloader directly so that users can freely implement downloading with whatever html elements?