| Avram | [email protected] | 24 |
| Shea | [email protected] | 38 |
| Freya | [email protected] | 35 |
| Thane | [email protected] | 24 |
| Doris | [email protected] | 50 |
| Yardley | [email protected] | 31 |
| Inga | [email protected] | 18 |
| Craig | [email protected] | 50 |
| Odette | [email protected] | 36 |
| Thane | [email protected] | 29 |
Rows per page
npx shadcn@latest add http://localhost:3001/r/data-table.jsonimport { DataTable } from "@/components/ui/data-table"const columns: ColumnDef<Userinfo>[] = [
{
accessorKey: "name",
header: ({ column }) => (
<DataTableColumnHeader column={column} title="Name" />
),
},
{
accessorKey: "email",
header: ({ column }) => (
<DataTableColumnHeader column={column} title="Email" />
),
},
{
accessorKey: "age",
header: ({ column }) => (
<DataTableColumnHeader column={column} title="Age" />
),
},
];<DataTable columns={columns} data={data} />