bootstrap-based-components
Version:
A Bootstrap based package with React components
17 lines (16 loc) • 645 B
TypeScript
import React from 'react';
import { StandardCardProps } from '../StandardCard';
import './style.scss';
interface ColumnConfig<T> {
key: keyof T;
name: string;
}
interface TableProps<T> {
columnConfig: ColumnConfig<T>[];
dataSource: T[];
children?: React.ReactNode;
onClick?: (event: React.MouseEvent<HTMLTableRowElement, MouseEvent>, data: T) => void;
}
declare type TableCardProps<T> = TableProps<T> & StandardCardProps;
declare function DataGridCard<T>({ header, img, title, footer, columnConfig, dataSource, className, children, onClick }: TableCardProps<T>): JSX.Element;
export default DataGridCard;