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 4dfb09c0_6760_6f93_33e5_8fe12dc5b577["table.tsx"] 1d141819_425e_b5fd_4c8e_32f7c6a42cf2["react"] 4dfb09c0_6760_6f93_33e5_8fe12dc5b577 --> 1d141819_425e_b5fd_4c8e_32f7c6a42cf2 ef4051f4_aeb7_8d0c_a726_0ba96ad80cf6["utils"] 4dfb09c0_6760_6f93_33e5_8fe12dc5b577 --> ef4051f4_aeb7_8d0c_a726_0ba96ad80cf6 style 4dfb09c0_6760_6f93_33e5_8fe12dc5b577 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
"use client"
import * as React from "react"
import { cn } from "@/registry/bases/radix/lib/utils"
function Table({ className, ...props }: React.ComponentProps<"table">) {
return (
<div data-slot="table-container" className="cn-table-container">
<table
data-slot="table"
className={cn("cn-table", className)}
{...props}
/>
</div>
)
}
function TableHeader({ className, ...props }: React.ComponentProps<"thead">) {
return (
<thead
data-slot="table-header"
className={cn("cn-table-header", className)}
{...props}
/>
)
}
function TableBody({ className, ...props }: React.ComponentProps<"tbody">) {
return (
<tbody
data-slot="table-body"
className={cn("cn-table-body", className)}
{...props}
/>
)
}
function TableFooter({ className, ...props }: React.ComponentProps<"tfoot">) {
return (
<tfoot
data-slot="table-footer"
className={cn("cn-table-footer", className)}
{...props}
/>
)
}
function TableRow({ className, ...props }: React.ComponentProps<"tr">) {
return (
<tr
data-slot="table-row"
className={cn("cn-table-row", className)}
{...props}
/>
)
}
function TableHead({ className, ...props }: React.ComponentProps<"th">) {
return (
<th
data-slot="table-head"
className={cn("cn-table-head", className)}
{...props}
/>
)
}
function TableCell({ className, ...props }: React.ComponentProps<"td">) {
return (
<td
data-slot="table-cell"
className={cn("cn-table-cell", className)}
{...props}
/>
)
}
function TableCaption({
className,
...props
}: React.ComponentProps<"caption">) {
return (
<caption
data-slot="table-caption"
className={cn("cn-table-caption", className)}
{...props}
/>
)
}
export {
Table,
TableHeader,
TableBody,
TableFooter,
TableHead,
TableRow,
TableCell,
TableCaption,
}
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 apps/v4/registry/bases/radix/ui/table.tsx (domain: ComponentRegistry, subdomain: ChartRegistry, directory: apps/v4/registry/bases/radix/ui).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free