AppSidebar() — ui Function Reference
Architecture documentation for the AppSidebar() function in sidebar-demo.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 1be7543f_068d_d342_ccc5_175cc185dfc8["AppSidebar()"] 486bcdf9_db1f_d23c_5276_2b64b346aa38["sidebar-demo.tsx"] 1be7543f_068d_d342_ccc5_175cc185dfc8 -->|defined in| 486bcdf9_db1f_d23c_5276_2b64b346aa38 style 1be7543f_068d_d342_ccc5_175cc185dfc8 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/registry/new-york-v4/internal/sidebar-demo.tsx lines 54–85
export default function AppSidebar() {
return (
<SidebarProvider>
<Sidebar>
<SidebarContent>
<SidebarGroup>
<SidebarGroupLabel>Application</SidebarGroupLabel>
<SidebarGroupContent>
<SidebarMenu>
{items.map((item) => (
<SidebarMenuItem key={item.title}>
<SidebarMenuButton asChild>
<a href={item.url}>
<item.icon />
<span>{item.title}</span>
</a>
</SidebarMenuButton>
</SidebarMenuItem>
))}
</SidebarMenu>
</SidebarGroupContent>
</SidebarGroup>
</SidebarContent>
</Sidebar>
<SidebarInset>
<header className="flex h-12 items-center justify-between px-4">
<SidebarTrigger />
</header>
</SidebarInset>
</SidebarProvider>
)
}
Domain
Subdomains
Source
Frequently Asked Questions
What does AppSidebar() do?
AppSidebar() is a function in the ui codebase, defined in apps/v4/registry/new-york-v4/internal/sidebar-demo.tsx.
Where is AppSidebar() defined?
AppSidebar() is defined in apps/v4/registry/new-york-v4/internal/sidebar-demo.tsx at line 54.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free