sidebar-header.tsx — ui Source File
Architecture documentation for sidebar-header.tsx, a tsx file in the ui codebase. 3 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 6efbf297_046c_caf5_07a8_74b7ce75cb6b["sidebar-header.tsx"] d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3["lucide-react"] 6efbf297_046c_caf5_07a8_74b7ce75cb6b --> d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3 d1cb37f2_0d1d_01bc_0d60_a15219afac51["dropdown-menu"] 6efbf297_046c_caf5_07a8_74b7ce75cb6b --> d1cb37f2_0d1d_01bc_0d60_a15219afac51 12632a83_ef01_5f03_4110_ed33d49893b7["sidebar"] 6efbf297_046c_caf5_07a8_74b7ce75cb6b --> 12632a83_ef01_5f03_4110_ed33d49893b7 style 6efbf297_046c_caf5_07a8_74b7ce75cb6b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
"use client"
import { ChevronDownIcon } from "lucide-react"
import {
DropdownMenu,
DropdownMenuContent,
DropdownMenuItem,
DropdownMenuTrigger,
} from "@/registry/new-york-v4/ui/dropdown-menu"
import {
Sidebar,
SidebarHeader,
SidebarInset,
SidebarMenu,
SidebarMenuButton,
SidebarMenuItem,
SidebarProvider,
SidebarTrigger,
} from "@/registry/new-york-v4/ui/sidebar"
export default function AppSidebar() {
return (
<SidebarProvider>
<Sidebar>
<SidebarHeader>
<SidebarMenu>
<SidebarMenuItem>
<DropdownMenu>
<DropdownMenuTrigger asChild>
<SidebarMenuButton className="data-[state=open]:bg-sidebar-accent data-[state=open]:text-sidebar-accent-foreground">
Select Workspace
<ChevronDownIcon className="ml-auto" />
</SidebarMenuButton>
</DropdownMenuTrigger>
<DropdownMenuContent className="w-(--radix-popper-anchor-width)">
<DropdownMenuItem>
<span>Acme Inc</span>
</DropdownMenuItem>
<DropdownMenuItem>
<span>Acme Corp.</span>
</DropdownMenuItem>
</DropdownMenuContent>
</DropdownMenu>
</SidebarMenuItem>
</SidebarMenu>
</SidebarHeader>
</Sidebar>
<SidebarInset>
<header className="flex h-12 items-center justify-between px-4">
<SidebarTrigger />
</header>
</SidebarInset>
</SidebarProvider>
)
}
Domain
Subdomains
Functions
Dependencies
- dropdown-menu
- lucide-react
- sidebar
Source
Frequently Asked Questions
What does sidebar-header.tsx do?
sidebar-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 sidebar-header.tsx?
sidebar-header.tsx defines 1 function(s): AppSidebar.
What does sidebar-header.tsx depend on?
sidebar-header.tsx imports 3 module(s): dropdown-menu, lucide-react, sidebar.
Where is sidebar-header.tsx in the architecture?
sidebar-header.tsx is located at apps/v4/registry/new-york-v4/internal/sidebar-header.tsx (domain: ComponentRegistry, subdomain: ChartRegistry, directory: apps/v4/registry/new-york-v4/internal).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free