SiteHeader() — ui Function Reference
Architecture documentation for the SiteHeader() function in site-header.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 6e3398d9_8689_34a1_7815_5cc3a752dcf2["SiteHeader()"] 4a951332_093f_7276_7b4a_f1cd4dc77330["site-header.tsx"] 6e3398d9_8689_34a1_7815_5cc3a752dcf2 -->|defined in| 4a951332_093f_7276_7b4a_f1cd4dc77330 style 6e3398d9_8689_34a1_7815_5cc3a752dcf2 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/registry/new-york-v4/blocks/dashboard-01/components/site-header.tsx lines 5–30
export function SiteHeader() {
return (
<header className="flex h-(--header-height) shrink-0 items-center gap-2 border-b transition-[width,height] ease-linear group-has-data-[collapsible=icon]/sidebar-wrapper:h-(--header-height)">
<div className="flex w-full items-center gap-1 px-4 lg:gap-2 lg:px-6">
<SidebarTrigger className="-ml-1" />
<Separator
orientation="vertical"
className="mx-2 data-[orientation=vertical]:h-4"
/>
<h1 className="text-base font-medium">Documents</h1>
<div className="ml-auto flex items-center gap-2">
<Button variant="ghost" asChild size="sm" className="hidden sm:flex">
<a
href="https://github.com/shadcn-ui/ui/tree/main/apps/v4/app/(examples)/dashboard"
rel="noopener noreferrer"
target="_blank"
className="dark:text-foreground"
>
GitHub
</a>
</Button>
</div>
</div>
</header>
)
}
Domain
Subdomains
Source
Frequently Asked Questions
What does SiteHeader() do?
SiteHeader() is a function in the ui codebase, defined in apps/v4/registry/new-york-v4/blocks/dashboard-01/components/site-header.tsx.
Where is SiteHeader() defined?
SiteHeader() is defined in apps/v4/registry/new-york-v4/blocks/dashboard-01/components/site-header.tsx at line 5.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free