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 683f4dae_eaac_4a4a_b2cf_e43b8b96cf9e["sidebar-header.tsx"] c4660ec2_c67c_8de8_aea3_ab3bf7989b6f["dropdown-menu"] 683f4dae_eaac_4a4a_b2cf_e43b8b96cf9e --> c4660ec2_c67c_8de8_aea3_ab3bf7989b6f 40190c4f_9641_df4b_7a22_e87f02982369["sidebar"] 683f4dae_eaac_4a4a_b2cf_e43b8b96cf9e --> 40190c4f_9641_df4b_7a22_e87f02982369 d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3["lucide-react"] 683f4dae_eaac_4a4a_b2cf_e43b8b96cf9e --> d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3 style 683f4dae_eaac_4a4a_b2cf_e43b8b96cf9e fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
"use client"
import {
DropdownMenu,
DropdownMenuContent,
DropdownMenuItem,
DropdownMenuTrigger,
} from "@/examples/radix/ui/dropdown-menu"
import {
Sidebar,
SidebarHeader,
SidebarInset,
SidebarMenu,
SidebarMenuButton,
SidebarMenuItem,
SidebarProvider,
SidebarTrigger,
} from "@/examples/radix/ui/sidebar"
import { ChevronDownIcon } from "lucide-react"
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 DocumentationAtlas domain, ContentSourcing 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/examples/radix/sidebar-header.tsx (domain: DocumentationAtlas, subdomain: ContentSourcing, directory: apps/v4/examples/radix).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free