Home / File/ page-header.tsx — ui Source File

page-header.tsx — ui Source File

Architecture documentation for page-header.tsx, a tsx file in the ui codebase. 1 imports, 0 dependents.

File tsx ComponentRegistry UIPrimitives 1 imports 4 functions

Entity Profile

Dependency Diagram

graph LR
  e73354ed_d052_3c74_ac98_5ce39d26e81f["page-header.tsx"]
  79081a1f_55a3_945a_fb8c_d53d6d3eab81["utils"]
  e73354ed_d052_3c74_ac98_5ce39d26e81f --> 79081a1f_55a3_945a_fb8c_d53d6d3eab81
  style e73354ed_d052_3c74_ac98_5ce39d26e81f fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import { cn } from "@/lib/utils"

function PageHeader({
  className,
  children,
  ...props
}: React.HTMLAttributes<HTMLDivElement>) {
  return (
    <section className={cn("border-grid border-b", className)} {...props}>
      <div className="container-wrapper">
        <div className="container flex flex-col items-start gap-1 py-8 md:py-10 lg:py-12">
          {children}
        </div>
      </div>
    </section>
  )
}

function PageHeaderHeading({
  className,
  ...props
}: React.HTMLAttributes<HTMLHeadingElement>) {
  return (
    <h1
      className={cn(
        "text-2xl font-bold leading-tight tracking-tighter sm:text-3xl md:text-4xl lg:leading-[1.1]",
        className
      )}
      {...props}
    />
  )
}

function PageHeaderDescription({
  className,
  ...props
}: React.HTMLAttributes<HTMLParagraphElement>) {
  return (
    <p
      className={cn(
        "max-w-2xl text-balance text-base font-light text-foreground sm:text-lg",
        className
      )}
      {...props}
    />
  )
}

function PageActions({
  className,
  ...props
}: React.HTMLAttributes<HTMLDivElement>) {
  return (
    <div
      className={cn(
        "flex w-full items-center justify-start gap-2 pt-2",
        className
      )}
      {...props}
    />
  )
}

export { PageActions, PageHeader, PageHeaderDescription, PageHeaderHeading }

Subdomains

Dependencies

  • utils

Frequently Asked Questions

What does page-header.tsx do?
page-header.tsx is a source file in the ui codebase, written in tsx. It belongs to the ComponentRegistry domain, UIPrimitives subdomain.
What functions are defined in page-header.tsx?
page-header.tsx defines 4 function(s): PageActions, PageHeader, PageHeaderDescription, PageHeaderHeading.
What does page-header.tsx depend on?
page-header.tsx imports 1 module(s): utils.
Where is page-header.tsx in the architecture?
page-header.tsx is located at deprecated/www/components/page-header.tsx (domain: ComponentRegistry, subdomain: UIPrimitives, directory: deprecated/www/components).

Analyze Your Own Codebase

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

Try Supermodel Free