Home / Function/ TableDemo() — ui Function Reference

TableDemo() — ui Function Reference

Architecture documentation for the TableDemo() function in table-demo.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  01c21b71_3705_1e85_97ac_9dd34433e450["TableDemo()"]
  98ddc519_5d27_f196_4b33_05a3e662dda5["table-demo.tsx"]
  01c21b71_3705_1e85_97ac_9dd34433e450 -->|defined in| 98ddc519_5d27_f196_4b33_05a3e662dda5
  style 01c21b71_3705_1e85_97ac_9dd34433e450 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/registry/new-york-v4/examples/table-demo.tsx lines 57–87

export default function TableDemo() {
  return (
    <Table>
      <TableCaption>A list of your recent invoices.</TableCaption>
      <TableHeader>
        <TableRow>
          <TableHead className="w-[100px]">Invoice</TableHead>
          <TableHead>Status</TableHead>
          <TableHead>Method</TableHead>
          <TableHead className="text-right">Amount</TableHead>
        </TableRow>
      </TableHeader>
      <TableBody>
        {invoices.map((invoice) => (
          <TableRow key={invoice.invoice}>
            <TableCell className="font-medium">{invoice.invoice}</TableCell>
            <TableCell>{invoice.paymentStatus}</TableCell>
            <TableCell>{invoice.paymentMethod}</TableCell>
            <TableCell className="text-right">{invoice.totalAmount}</TableCell>
          </TableRow>
        ))}
      </TableBody>
      <TableFooter>
        <TableRow>
          <TableCell colSpan={3}>Total</TableCell>
          <TableCell className="text-right">$2,500.00</TableCell>
        </TableRow>
      </TableFooter>
    </Table>
  )
}

Subdomains

Frequently Asked Questions

What does TableDemo() do?
TableDemo() is a function in the ui codebase, defined in apps/v4/registry/new-york-v4/examples/table-demo.tsx.
Where is TableDemo() defined?
TableDemo() is defined in apps/v4/registry/new-york-v4/examples/table-demo.tsx at line 57.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free