tanstack-shadcn-table
Version:
A powerful, feature-rich React table component built on top of TanStack Table v8 with shadcn/ui styling. Optimized bundle size with 55% reduction through peer dependencies.
18 lines (17 loc) • 763 B
TypeScript
import { Header } from "@tanstack/react-table";
import React from "react";
import { Cell } from "@tanstack/react-table";
type DraggableHeaderProps<T> = {
header: Header<T, unknown>;
colClassName?: string;
TableHeadComponent?: React.ElementType;
reorderable?: boolean;
enableColumnResizing?: boolean;
};
export declare function DraggableHeader<T>({ header, TableHeadComponent, colClassName, reorderable, enableColumnResizing, }: DraggableHeaderProps<T>): import("react/jsx-runtime").JSX.Element;
export declare function DraggableTableCell<T>({ cell, colClassName, TableCellComponent, }: {
cell: Cell<T, unknown>;
colClassName?: string;
TableCellComponent?: React.ElementType;
}): import("react/jsx-runtime").JSX.Element;
export {};