@trail-ui/react
Version:
31 lines (28 loc) • 1.02 kB
TypeScript
import * as react_jsx_runtime from 'react/jsx-runtime';
type ObjectFitProps = 'contain' | 'cover' | 'fill' | 'none' | 'scale-down';
interface Column {
id: string;
name: string;
accessor: string;
type: 'id' | 'text' | 'date' | 'number' | 'status' | 'percentage' | 'usersList' | 'image' | 'link' | 'username' | 'profileImage';
width?: number;
objectFit?: ObjectFitProps;
linkTo: string;
filterFn: string;
}
interface Row {
getValue(columnId: string): unknown;
}
declare function TanstackTable({ columns, data, tableData, showName, defaultSortingHeader, tableName, checkBoxSelectedName, WithoutCheckbox, tableHeight, showFilter, }: {
columns: Column[];
data: any[];
tableData?: number;
showName?: boolean;
defaultSortingHeader?: string;
tableName?: string;
checkBoxSelectedName?: string;
WithoutCheckbox?: boolean;
tableHeight?: string;
showFilter?: boolean;
}): react_jsx_runtime.JSX.Element;
export { Column, Row, TanstackTable as default };