Home / Function/ CardHeader() — ui Function Reference

CardHeader() — ui Function Reference

Architecture documentation for the CardHeader() function in card.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  fb1d05ee_8b0d_0235_26a2_19962cb58614["CardHeader()"]
  60e1f93b_67fc_124a_72ef_95bf753e33ca["card.tsx"]
  fb1d05ee_8b0d_0235_26a2_19962cb58614 -->|defined in| 60e1f93b_67fc_124a_72ef_95bf753e33ca
  style fb1d05ee_8b0d_0235_26a2_19962cb58614 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/registry/new-york-v4/ui/card.tsx lines 18–29

function CardHeader({ className, ...props }: React.ComponentProps<"div">) {
  return (
    <div
      data-slot="card-header"
      className={cn(
        "@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",
        className
      )}
      {...props}
    />
  )
}

Subdomains

Frequently Asked Questions

What does CardHeader() do?
CardHeader() is a function in the ui codebase, defined in apps/v4/registry/new-york-v4/ui/card.tsx.
Where is CardHeader() defined?
CardHeader() is defined in apps/v4/registry/new-york-v4/ui/card.tsx at line 18.

Analyze Your Own Codebase

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

Try Supermodel Free