@cimpress/react-components
Version:
React components to support the MCP styleguide
19 lines • 810 B
TypeScript
import React from 'react';
import { SortKey, TableColumnProps } from './types';
import { PublicComponentProps } from '../types';
export interface TableProps extends PublicComponentProps {
data: any[];
columns: TableColumnProps[];
sortedBy?: SortKey;
isCondensed?: boolean;
hasHover?: boolean;
isBordered?: boolean;
noDataText?: string;
onSortingRequested?: (sortKey: SortKey) => void;
pageSize?: number;
paginationPosition?: 'topRight' | 'bottomRight';
loading?: boolean;
loadingText?: string;
}
export declare const Table: ({ data, columns, sortedBy, noDataText, onSortingRequested, isCondensed, hasHover, isBordered, pageSize, paginationPosition, loading, loadingText, className, ...rest }: TableProps) => React.JSX.Element;
//# sourceMappingURL=Table.d.ts.map