@cimpress/react-components
Version:
React components to support the MCP styleguide
22 lines • 584 B
TypeScript
import { ReactNode } from 'react';
export interface SortKey {
key: string;
desc?: boolean;
}
export interface TableColumnProps {
Header: string | ReactNode;
accessor: string;
Cell?: (row: any) => ReactNode;
sortable?: boolean;
}
export interface TableProps {
data: any[];
columns: TableColumnProps[];
noDataText: ReactNode | string;
sortedBy?: SortKey;
onSortingRequested?: (sortBy: SortKey) => void;
pageSize?: number;
paginationPosition?: 'topRight' | 'bottomRight';
filterable?: boolean;
}
//# sourceMappingURL=types.d.ts.map