@cimpress/react-components
Version:
React components to support the MCP styleguide
17 lines • 738 B
TypeScript
/// <reference types="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?: (soryKey: SortKey) => void;
pageSize?: number;
paginationPosition?: 'topRight' | 'bottomRight';
}
export declare const Table: ({ data, columns, sortedBy, noDataText, onSortingRequested, isCondensed, hasHover, isBordered, pageSize, paginationPosition, className, ...rest }: TableProps) => JSX.Element;
//# sourceMappingURL=Table.d.ts.map