Aspekt logoAspekt UI

Table is used to scan, compare, and sort structured data.

Recent invoices
INV-2420Signal & Co.EnterpriseOverdueJun 16$3,420.00
INV-2418Northstar LabsScalePaidJun 12$1,280.00
INV-2421Fieldstone StudioTeamPaidJun 18$780.00
INV-2419Aperture WorksTeamPendingJun 14$640.00
tsx
import { Table, type TableColumnDef } from "@/components/aspekt/table";
type Invoice = {  customer: string;  status: "Paid" | "Pending" | "Overdue";  total: number;}; const columns = [  { accessorKey: "customer", header: "Customer" },  { accessorKey: "status", header: "Status" },  {    accessorKey: "total",    header: "Total",    cell: ({ getValue }) =>      Intl.NumberFormat("en", {        style: "currency",        currency: "USD",      }).format(getValue<number>()),  },] satisfies TableColumnDef<Invoice>[]; <Table  columns={columns}  data={invoices}  caption="Recent invoices"  striped/>