{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"c-table-1","type":"registry:block","title":"Basic table.","description":"Basic table.","dependencies":[],"registryDependencies":["table"],"files":[{"path":"c-table-1.tsx","type":"registry:block","content":"import {\n  Table,\n  TableBody,\n  TableCaption,\n  TableCell,\n  TableHead,\n  TableHeader,\n  TableRow,\n} from \"@/components/ui/table\"\n\nconst invoices = [\n  {\n    invoice: \"INV001\",\n    paymentStatus: \"Paid\",\n    totalAmount: \"$250.00\",\n    paymentMethod: \"Credit Card\",\n  },\n  {\n    invoice: \"INV002\",\n    paymentStatus: \"Pending\",\n    totalAmount: \"$150.00\",\n    paymentMethod: \"PayPal\",\n  },\n  {\n    invoice: \"INV003\",\n    paymentStatus: \"Unpaid\",\n    totalAmount: \"$350.00\",\n    paymentMethod: \"Bank Transfer\",\n  },\n]\n\nexport function Pattern() {\n  return (\n    <div className=\"mx-auto flex w-full max-w-lg flex-col\">\n      <Table>\n        <TableCaption>A list of your recent invoices.</TableCaption>\n        <TableHeader>\n          <TableRow>\n            <TableHead className=\"w-[100px]\">Invoice</TableHead>\n            <TableHead>Status</TableHead>\n            <TableHead>Method</TableHead>\n            <TableHead className=\"text-right\">Amount</TableHead>\n          </TableRow>\n        </TableHeader>\n        <TableBody>\n          {invoices.map((invoice) => (\n            <TableRow key={invoice.invoice}>\n              <TableCell className=\"text-sm font-medium\">\n                {invoice.invoice}\n              </TableCell>\n              <TableCell className=\"text-sm\">{invoice.paymentStatus}</TableCell>\n              <TableCell className=\"text-sm\">{invoice.paymentMethod}</TableCell>\n              <TableCell className=\"text-right text-sm\">\n                {invoice.totalAmount}\n              </TableCell>\n            </TableRow>\n          ))}\n        </TableBody>\n      </Table>\n    </div>\n  )\n}","target":"components/examples/c-table-1.tsx"}],"meta":{"order":1,"label":"Basic"}}