Home / Function/ AppSidebar() — ui Function Reference

AppSidebar() — ui Function Reference

Architecture documentation for the AppSidebar() function in app-sidebar.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  534163f2_ddd3_de2f_4ae6_ef916c5e8de9["AppSidebar()"]
  1ece5060_6b48_6e26_d225_725400be5d08["app-sidebar.tsx"]
  534163f2_ddd3_de2f_4ae6_ef916c5e8de9 -->|defined in| 1ece5060_6b48_6e26_d225_725400be5d08
  style 534163f2_ddd3_de2f_4ae6_ef916c5e8de9 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/registry/new-york-v4/blocks/sidebar-08/components/app-sidebar.tsx lines 155–185

export function AppSidebar({ ...props }: React.ComponentProps<typeof Sidebar>) {
  return (
    <Sidebar variant="inset" {...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">
                  <Command 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>
  )
}

Subdomains

Frequently Asked Questions

What does AppSidebar() do?
AppSidebar() is a function in the ui codebase, defined in apps/v4/registry/new-york-v4/blocks/sidebar-08/components/app-sidebar.tsx.
Where is AppSidebar() defined?
AppSidebar() is defined in apps/v4/registry/new-york-v4/blocks/sidebar-08/components/app-sidebar.tsx at line 155.

Analyze Your Own Codebase

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

Try Supermodel Free