We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc9d454 commit bf273e4Copy full SHA for bf273e4
src/index.js
@@ -2,10 +2,10 @@ import React from 'react'
2
import csvDownload from 'json-to-csv-export'
3
4
const CsvDownload = (props) => {
5
- const { data, filename, ...others } = props
+ const { data, filename, delimiter, ...others } = props
6
7
return (
8
- <button onClick={() => csvDownload({ data, filename })} {...others}>
+ <button onClick={() => csvDownload({ data, filename, delimiter })} {...others}>
9
{props.children || 'Download Data'}
10
</button>
11
)
0 commit comments