{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "table-with-footer",
  "title": "Table with footer",
  "description": "Table with footer, built from the table component.",
  "registryDependencies": [
    "table"
  ],
  "files": [
    {
      "path": "registry/patterns/table-with-footer/table-with-footer.tsx",
      "content": "/**\n * Table with footer - adapted for tealmac UI from the ReUI example \"c-table-2\"\n * (https://github.com/keenthemes/reui), MIT License, Copyright (c) 2025\n * Keenthemes Inc. The full licence text is in THIRD_PARTY_NOTICES.md.\n * Changes: tealmac UI import paths and theme tokens, lucide icons, logical\n * (RTL-safe) spacing and alignment, reduced-motion support and sample\n * content.\n */\nimport {\n  Table,\n  TableBody,\n  TableCell,\n  TableFooter,\n  TableHead,\n  TableHeader,\n  TableRow,\n} from \"@/components/ui/table\"\n\nconst invoices = [\n  { invoice: \"INV001\", status: \"Paid\", amount: \"$250.00\" },\n  { invoice: \"INV002\", status: \"Pending\", amount: \"$150.00\" },\n  { invoice: \"INV003\", status: \"Unpaid\", amount: \"$350.00\" },\n]\n\nexport function TableWithFooter() {\n  return (\n    <div className=\"mx-auto flex w-full max-w-lg flex-col\">\n      <Table>\n        <TableHeader>\n          <TableRow>\n            <TableHead>Invoice</TableHead>\n            <TableHead>Status</TableHead>\n            <TableHead className=\"text-end\">Amount</TableHead>\n          </TableRow>\n        </TableHeader>\n        <TableBody>\n          {invoices.map((invoice) => (\n            <TableRow key={invoice.invoice}>\n              <TableCell className=\"font-medium\">{invoice.invoice}</TableCell>\n              <TableCell>{invoice.status}</TableCell>\n              <TableCell className=\"text-end\">{invoice.amount}</TableCell>\n            </TableRow>\n          ))}\n        </TableBody>\n        <TableFooter>\n          <TableRow>\n            <TableCell colSpan={2}>Total</TableCell>\n            <TableCell className=\"text-end font-bold\">$750.00</TableCell>\n          </TableRow>\n        </TableFooter>\n      </Table>\n    </div>\n  )\n}\n",
      "type": "registry:block"
    }
  ],
  "type": "registry:block"
}