AppSidebar() — ui Function Reference
Architecture documentation for the AppSidebar() function in app-sidebar.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 6a8f1b22_a589_ae6c_db20_8daff49d6fe3["AppSidebar()"] 52dd8cf2_435e_e457_07a4_c2a6b528427e["app-sidebar.tsx"] 6a8f1b22_a589_ae6c_db20_8daff49d6fe3 -->|defined in| 52dd8cf2_435e_e457_07a4_c2a6b528427e style 6a8f1b22_a589_ae6c_db20_8daff49d6fe3 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/registry/bases/radix/blocks/sidebar-16/components/app-sidebar.tsx lines 216–256
export function AppSidebar({ ...props }: React.ComponentProps<typeof Sidebar>) {
return (
<Sidebar
className="top-(--header-height) h-[calc(100svh-var(--header-height))]!"
{...props}
>
<SidebarHeader>
<SidebarMenu>
<SidebarMenuItem>
<SidebarMenuButton size="lg" asChild>
<a href="#">
<div className="bg-sidebar-primary text-sidebar-primary-foreground flex aspect-square size-8 items-center justify-center rounded-lg">
<IconPlaceholder
lucide="TerminalIcon"
tabler="IconCommand"
hugeicons="CommandIcon"
phosphor="CommandIcon"
remixicon="RiCommandLine"
className="size-4"
/>
</div>
<div className="grid flex-1 text-left text-sm leading-tight">
<span className="truncate font-medium">Acme Inc</span>
<span className="truncate text-xs">Enterprise</span>
</div>
</a>
</SidebarMenuButton>
</SidebarMenuItem>
</SidebarMenu>
</SidebarHeader>
<SidebarContent>
<NavMain items={data.navMain} />
<NavProjects projects={data.projects} />
<NavSecondary items={data.navSecondary} className="mt-auto" />
</SidebarContent>
<SidebarFooter>
<NavUser user={data.user} />
</SidebarFooter>
</Sidebar>
)
}
Domain
Subdomains
Source
Frequently Asked Questions
What does AppSidebar() do?
AppSidebar() is a function in the ui codebase, defined in apps/v4/registry/bases/radix/blocks/sidebar-16/components/app-sidebar.tsx.
Where is AppSidebar() defined?
AppSidebar() is defined in apps/v4/registry/bases/radix/blocks/sidebar-16/components/app-sidebar.tsx at line 216.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free