BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/ilinxa/data-table

Data Table

ilinxa/data-table
FreeBlock

A typed, composable table primitive with column accessors and per-cell rendering.

Install it

npx shadcn@latest add https://ui.ilinxa.com/r/data-table.json

Source

src/registry/components/data/data-table/data-table.tsxui.ilinxa.com/r/data-table.json
1import {
2 Table,
3 TableBody,
4 TableCaption,
5 TableCell,
6 TableHead,
7 TableHeader,
8 TableRow,
9} from "@/components/ui/table";
10import { cn } from "@/lib/utils";
11import type { DataTableProps } from "./types";
12
13export function DataTable<TRow>({
14 columns,
15 rows,
16 caption,
17 emptyState,
18 rowKey,
19}: DataTableProps<TRow>) {
20 if (rows.length === 0) {
21 return (
22 <div className="rounded-md border border-border bg-card p-8 text-center text-sm text-muted-foreground">
23 {emptyState ?? "No records to display."}
24 </div>
25 );
26 }
27
28 return (
29 <div className="rounded-md border border-border bg-card">
30 <Table>
31 {caption ? <TableCaption>{caption}</TableCaption> : null}
32 <TableHeader>
33 <TableRow>
34 {columns.map((column) => (
35 <TableHead
36 key={column.id}
37 className={cn(
38 column.align === "right" && "text-right",
39 column.align === "center" && "text-center",
40 )}
41 style={column.width ? { width: column.width } : undefined}
42 >
43 {column.header}
44 </TableHead>
45 ))}
46 </TableRow>
47 </TableHeader>
48 <TableBody>
49 {rows.map((row, index) => (
50 <TableRow key={rowKey(row, index)}>
51 {columns.map((column) => (
52 <TableCell
53 key={column.id}
54 className={cn(
55 column.align === "right" && "text-right",
56 column.align === "center" && "text-center",
57 )}
58 >
59 {column.accessor(row)}
60 </TableCell>
61 ))}
62 </TableRow>
63 ))}
64 </TableBody>
65 </Table>
66 </div>
67 );
68}

What it pulls in

Other registry items

  • table

Files it writes

  • src/registry/components/data/data-table/data-table.tsx
  • src/registry/components/data/data-table/index.ts
  • src/registry/components/data/data-table/types.ts

Facts

Registry
ilinxa
Type
registry:block
Access
Free
Files written
3
Licence
MIT
In the index
at or before 2026-08-13
Last confirmed
today

Go to the source

ui.ilinxa.com ilinxa/pro-ui on GitHub Raw registry item This item as JSON

More from ilinxa

All 184 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Account Switcheraccount-switcherilinxaBlocksFree1 dep · 10 files
Account Switcher (deprecated alias)account-switcher-01ilinxaBlocksFreeno deps
Account Switcher — fixturesaccount-switcher-fixturesilinxaBlocksFreeno deps
App Sidebarapp-sidebarilinxaBlocksFree1 dep · 37 files
App Sidebar — fixturesapp-sidebar-fixturesilinxaBlocksFreeno deps
Rich Text Editor (deprecated alias)article-body-01ilinxaBlocksFreeno deps
Article Metaarticle-metailinxaBlocksFree1 dep · 4 files
Article Meta (deprecated alias)article-meta-01ilinxaBlocksFreeno deps
BlockDex

Built by

Kynth Studios

the studio behind StoreReady, ToolDrift and BreachProbe

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product.

BlockDex

BlockDex

Built by

Kynth Studios

the studio behind StoreReady, ToolDrift and BreachProbe

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product.

BlockDex

BlockDex

Built by

Kynth Studios

the studio behind StoreReady, ToolDrift and BreachProbe

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product.

BlockDex