infinity-ui-elements
Version:
A React TypeScript component library with Tailwind CSS design system
21 lines • 898 B
TypeScript
import * as React from "react";
import { type Row } from "@tanstack/react-table";
interface TableBodyProps<TData> {
rows: Row<TData>[];
enableRowSelection: boolean;
size: "small" | "medium" | "large";
variant: "default" | "bordered" | "striped";
showRowHover: boolean;
cellClassName?: string;
onRowClick?: (row: TData) => void;
getRowClassName: (row: TData) => string;
handleRowClick: (row: TData) => void;
getColumnStyle: (columnId: string, fallback?: {
width?: number;
minWidth?: number;
maxWidth?: number;
}) => React.CSSProperties;
}
export declare function TableBody<TData>({ rows, enableRowSelection, size, variant, showRowHover, cellClassName, onRowClick, getRowClassName, handleRowClick, getColumnStyle, }: TableBodyProps<TData>): import("react/jsx-runtime").JSX.Element;
export {};
//# sourceMappingURL=TableBody.d.ts.map