Home / Function/ TableWithInput() — ui Function Reference

TableWithInput() — ui Function Reference

Architecture documentation for the TableWithInput() function in table-example.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  7f8b86b2_5efe_2340_984e_0fa7882ea763["TableWithInput()"]
  da4411d1_9b3f_49d2_dd02_b8128eb4097d["table-example.tsx"]
  7f8b86b2_5efe_2340_984e_0fa7882ea763 -->|defined in| da4411d1_9b3f_49d2_dd02_b8128eb4097d
  style 7f8b86b2_5efe_2340_984e_0fa7882ea763 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/registry/bases/base/examples/table-example.tsx lines 432–484

function TableWithInput() {
  return (
    <Example title="With Input">
      <Table>
        <TableHeader>
          <TableRow>
            <TableHead>Product</TableHead>
            <TableHead>Quantity</TableHead>
            <TableHead>Price</TableHead>
          </TableRow>
        </TableHeader>
        <TableBody>
          <TableRow>
            <TableCell className="font-medium">Wireless Mouse</TableCell>
            <TableCell>
              <Input
                type="number"
                defaultValue="1"
                className="h-8 w-20"
                min="0"
              />
            </TableCell>
            <TableCell>$29.99</TableCell>
          </TableRow>
          <TableRow>
            <TableCell className="font-medium">Mechanical Keyboard</TableCell>
            <TableCell>
              <Input
                type="number"
                defaultValue="2"
                className="h-8 w-20"
                min="0"
              />
            </TableCell>
            <TableCell>$129.99</TableCell>
          </TableRow>
          <TableRow>
            <TableCell className="font-medium">USB-C Hub</TableCell>
            <TableCell>
              <Input
                type="number"
                defaultValue="1"
                className="h-8 w-20"
                min="0"
              />
            </TableCell>
            <TableCell>$49.99</TableCell>
          </TableRow>
        </TableBody>
      </Table>
    </Example>
  )
}

Subdomains

Frequently Asked Questions

What does TableWithInput() do?
TableWithInput() is a function in the ui codebase, defined in apps/v4/registry/bases/base/examples/table-example.tsx.
Where is TableWithInput() defined?
TableWithInput() is defined in apps/v4/registry/bases/base/examples/table-example.tsx at line 432.

Analyze Your Own Codebase

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

Try Supermodel Free