Home / Function/ TableHead() — ui Function Reference

TableHead() — ui Function Reference

Architecture documentation for the TableHead() function in table.tsx from the ui codebase.

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

apps/v4/examples/base/ui/table.tsx lines 67–78

function TableHead({ className, ...props }: React.ComponentProps<"th">) {
  return (
    <th
      data-slot="table-head"
      className={cn(
        "text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0",
        className
      )}
      {...props}
    />
  )
}

Subdomains

Frequently Asked Questions

What does TableHead() do?
TableHead() is a function in the ui codebase, defined in apps/v4/examples/base/ui/table.tsx.
Where is TableHead() defined?
TableHead() is defined in apps/v4/examples/base/ui/table.tsx at line 67.

Analyze Your Own Codebase

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

Try Supermodel Free