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

site-header.tsx — ui Source File

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

File tsx ComponentRegistry ChartRegistry 3 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  4a951332_093f_7276_7b4a_f1cd4dc77330["site-header.tsx"]
  57e86e45_ac6e_7278_be08_9092724e8401["button"]
  4a951332_093f_7276_7b4a_f1cd4dc77330 --> 57e86e45_ac6e_7278_be08_9092724e8401
  b2c60dee_4ede_8485_a6b4_91c999cdc69f["separator"]
  4a951332_093f_7276_7b4a_f1cd4dc77330 --> b2c60dee_4ede_8485_a6b4_91c999cdc69f
  12632a83_ef01_5f03_4110_ed33d49893b7["sidebar"]
  4a951332_093f_7276_7b4a_f1cd4dc77330 --> 12632a83_ef01_5f03_4110_ed33d49893b7
  style 4a951332_093f_7276_7b4a_f1cd4dc77330 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import { Button } from "@/registry/new-york-v4/ui/button"
import { Separator } from "@/registry/new-york-v4/ui/separator"
import { SidebarTrigger } from "@/registry/new-york-v4/ui/sidebar"

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>
  )
}

Subdomains

Functions

Dependencies

  • button
  • separator
  • sidebar

Frequently Asked Questions

What does site-header.tsx do?
site-header.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 site-header.tsx?
site-header.tsx defines 1 function(s): SiteHeader.
What does site-header.tsx depend on?
site-header.tsx imports 3 module(s): button, separator, sidebar.
Where is site-header.tsx in the architecture?
site-header.tsx is located at apps/v4/registry/new-york-v4/blocks/dashboard-01/components/site-header.tsx (domain: ComponentRegistry, subdomain: ChartRegistry, directory: apps/v4/registry/new-york-v4/blocks/dashboard-01/components).

Analyze Your Own Codebase

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

Try Supermodel Free