UNPKG

csv-import-react

Version:

Open-source CSV, TSV, and XLS/XLSX file importer for React and JavaScript

23 lines (22 loc) 766 B
import { Resource } from "i18next"; import { HTMLAttributes } from "react"; type ModalParams = { isModal?: boolean; modalIsOpen?: boolean; modalOnCloseTriggered?: () => void; modalCloseOnOutsideClick?: boolean; }; export type CSVImporterProps = (HTMLAttributes<HTMLDialogElement> & HTMLAttributes<HTMLDivElement>) & { template?: Record<string, unknown> | string; darkMode?: boolean; primaryColor?: string; className?: string; onComplete?: (data: any) => void; waitOnComplete?: boolean; customStyles?: Record<string, string> | string; showDownloadTemplateButton?: boolean; skipHeaderRowSelection?: boolean; language?: string; customTranslations?: Resource; } & ModalParams; export {};