table.tsx — ui Source File
Architecture documentation for table.tsx, a tsx file in the ui codebase. 2 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR a76b0c27_b6d0_8c71_2d53_696df516cf37["table.tsx"] 1d141819_425e_b5fd_4c8e_32f7c6a42cf2["react"] a76b0c27_b6d0_8c71_2d53_696df516cf37 --> 1d141819_425e_b5fd_4c8e_32f7c6a42cf2 79081a1f_55a3_945a_fb8c_d53d6d3eab81["utils"] a76b0c27_b6d0_8c71_2d53_696df516cf37 --> 79081a1f_55a3_945a_fb8c_d53d6d3eab81 style a76b0c27_b6d0_8c71_2d53_696df516cf37 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import * as React from "react"
import { cn } from "@/lib/utils"
const Table = React.forwardRef<
HTMLTableElement,
React.HTMLAttributes<HTMLTableElement>
>(({ className, ...props }, ref) => (
<div className="relative w-full overflow-auto">
<table
ref={ref}
className={cn("w-full caption-bottom text-sm", className)}
{...props}
/>
</div>
))
Table.displayName = "Table"
const TableHeader = React.forwardRef<
HTMLTableSectionElement,
React.HTMLAttributes<HTMLTableSectionElement>
>(({ className, ...props }, ref) => (
<thead ref={ref} className={cn("[&_tr]:border-b", className)} {...props} />
))
TableHeader.displayName = "TableHeader"
const TableBody = React.forwardRef<
HTMLTableSectionElement,
React.HTMLAttributes<HTMLTableSectionElement>
>(({ className, ...props }, ref) => (
<tbody
ref={ref}
className={cn("[&_tr:last-child]:border-0", className)}
{...props}
/>
))
TableBody.displayName = "TableBody"
const TableFooter = React.forwardRef<
HTMLTableSectionElement,
React.HTMLAttributes<HTMLTableSectionElement>
>(({ className, ...props }, ref) => (
<tfoot
ref={ref}
className={cn(
"border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",
className
)}
{...props}
/>
))
TableFooter.displayName = "TableFooter"
const TableRow = React.forwardRef<
HTMLTableRowElement,
React.HTMLAttributes<HTMLTableRowElement>
>(({ className, ...props }, ref) => (
<tr
ref={ref}
className={cn(
// ... (61 more lines)
Domain
Subdomains
Functions
Dependencies
- react
- utils
Source
Frequently Asked Questions
What does table.tsx do?
table.tsx is a source file in the ui codebase, written in tsx. It belongs to the ComponentRegistry domain, ChartRegistry subdomain.
What functions are defined in table.tsx?
table.tsx defines 8 function(s): Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow.
What does table.tsx depend on?
table.tsx imports 2 module(s): react, utils.
Where is table.tsx in the architecture?
table.tsx is located at deprecated/www/registry/new-york/ui/table.tsx (domain: ComponentRegistry, subdomain: ChartRegistry, directory: deprecated/www/registry/new-york/ui).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free