UNPKG

csv-import-react

Version:

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

10 lines (9 loc) 650 B
import React from "react"; import { TableProps } from "./types"; export default function Table({ data, // An array of objects with the data to be displayed keyAsId, // Has to be a unique property in the data array to be used as key theme, // A CSS module object to style the table mergeThemes, // Should 'theme' be the only style applied (false) or be merged with the default style (true) highlightColumns, // Columns that should use the highlighted style hideColumns, // Array of columns to be hidden in the display emptyState, heading, background, columnWidths, columnAlignments, fixHeader, onRowClick, }: TableProps): React.ReactElement;