feat(data-table): Introduce comprehensive DataTable component with full feature set

This commit is contained in:
ghost2023
2026-05-19 16:50:01 +03:00
parent 4085e856e3
commit 634747640a
7 changed files with 399 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
import { Table as TanstackTable } from "@tanstack/react-table";
import { Skeleton } from "../skeleton";
import { TableCell, TableRow } from "#components/table";
export function DataTableSkeleton({ table }: { table: TanstackTable<any> }) {
return Array.from({ length: 10 }).map((_, i) => (
<TableRow key={i}>
{table.getAllColumns().map((column) => (
<TableCell key={column.id}>
<Skeleton className="h-8" />
</TableCell>
))}
</TableRow>
));
}