Home / Function/ NavSecondary() — ui Function Reference

NavSecondary() — ui Function Reference

Architecture documentation for the NavSecondary() function in nav-secondary.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  71777e5d_9e40_3d55_69bd_624290ce4c04["NavSecondary()"]
  b1b2eef0_4709_9b01_7cff_05182cc7bc54["nav-secondary.tsx"]
  71777e5d_9e40_3d55_69bd_624290ce4c04 -->|defined in| b1b2eef0_4709_9b01_7cff_05182cc7bc54
  style 71777e5d_9e40_3d55_69bd_624290ce4c04 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

deprecated/www/registry/default/blocks/dashboard-01/components/nav-secondary.tsx lines 14–42

export function NavSecondary({
  items,
  ...props
}: {
  items: {
    title: string
    url: string
    icon: LucideIcon
  }[]
} & React.ComponentPropsWithoutRef<typeof SidebarGroup>) {
  return (
    <SidebarGroup {...props}>
      <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>
  )
}

Subdomains

Frequently Asked Questions

What does NavSecondary() do?
NavSecondary() is a function in the ui codebase, defined in deprecated/www/registry/default/blocks/dashboard-01/components/nav-secondary.tsx.
Where is NavSecondary() defined?
NavSecondary() is defined in deprecated/www/registry/default/blocks/dashboard-01/components/nav-secondary.tsx at line 14.

Analyze Your Own Codebase

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

Try Supermodel Free