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. 5 imports, 0 dependents.

File tsx DocumentationAtlas Changelog 5 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  661ab80f_d5dc_9525_7669_2338743ffd2b["site-header.tsx"]
  57e86e45_ac6e_7278_be08_9092724e8401["button"]
  661ab80f_d5dc_9525_7669_2338743ffd2b --> 57e86e45_ac6e_7278_be08_9092724e8401
  b2c60dee_4ede_8485_a6b4_91c999cdc69f["separator"]
  661ab80f_d5dc_9525_7669_2338743ffd2b --> b2c60dee_4ede_8485_a6b4_91c999cdc69f
  12632a83_ef01_5f03_4110_ed33d49893b7["sidebar"]
  661ab80f_d5dc_9525_7669_2338743ffd2b --> 12632a83_ef01_5f03_4110_ed33d49893b7
  f03e58e9_c20a_a3a7_697c_70a5dd702b26["mode-toggle"]
  661ab80f_d5dc_9525_7669_2338743ffd2b --> f03e58e9_c20a_a3a7_697c_70a5dd702b26
  7401c6ab_4fbb_dc17_e80f_7ba8f81ce1f5["theme-selector"]
  661ab80f_d5dc_9525_7669_2338743ffd2b --> 7401c6ab_4fbb_dc17_e80f_7ba8f81ce1f5
  style 661ab80f_d5dc_9525_7669_2338743ffd2b 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"
import { ModeToggle } from "@/app/(examples)/dashboard/components/mode-toggle"
import { ThemeSelector } from "@/app/(examples)/dashboard/components/theme-selector"

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>
          <ThemeSelector />
          <ModeToggle />
        </div>
      </div>
    </header>
  )
}

Subdomains

Functions

Dependencies

  • button
  • mode-toggle
  • separator
  • sidebar
  • theme-selector

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 DocumentationAtlas domain, Changelog 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 5 module(s): button, mode-toggle, separator, sidebar, theme-selector.
Where is site-header.tsx in the architecture?
site-header.tsx is located at apps/v4/app/(examples)/dashboard/components/site-header.tsx (domain: DocumentationAtlas, subdomain: Changelog, directory: apps/v4/app/(examples)/dashboard/components).

Analyze Your Own Codebase

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

Try Supermodel Free