ehsas_react-papaparse
Version:
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.
20 lines (19 loc) • 460 B
TypeScript
import React from 'react';
import { UnparseConfig } from 'papaparse';
export interface Props {
children: React.ReactNode;
data: any;
filename: string;
type?: 'link' | 'button';
style?: any;
className?: string;
bom?: boolean;
config?: UnparseConfig;
}
export declare function useCSVDownloader(): {
CSVDownloader: any;
Type: {
readonly Link: "link";
readonly Button: "button";
};
};