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
  2bf0b4f9_863b_c057_38fb_9c5bdcd2eb6b["NavSecondary()"]
  2d92d624_a427_4a1e_ac17_389877d02292["nav-secondary.tsx"]
  2bf0b4f9_863b_c057_38fb_9c5bdcd2eb6b -->|defined in| 2d92d624_a427_4a1e_ac17_389877d02292
  style 2bf0b4f9_863b_c057_38fb_9c5bdcd2eb6b fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/registry/new-york-v4/blocks/sidebar-15/components/nav-secondary.tsx lines 13–43

export function NavSecondary({
  items,
  ...props
}: {
  items: {
    title: string
    url: string
    icon: LucideIcon
    badge?: React.ReactNode
  }[]
} & 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>
              {item.badge && <SidebarMenuBadge>{item.badge}</SidebarMenuBadge>}
            </SidebarMenuItem>
          ))}
        </SidebarMenu>
      </SidebarGroupContent>
    </SidebarGroup>
  )
}

Subdomains

Frequently Asked Questions

What does NavSecondary() do?
NavSecondary() is a function in the ui codebase, defined in apps/v4/registry/new-york-v4/blocks/sidebar-15/components/nav-secondary.tsx.
Where is NavSecondary() defined?
NavSecondary() is defined in apps/v4/registry/new-york-v4/blocks/sidebar-15/components/nav-secondary.tsx at line 13.

Analyze Your Own Codebase

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

Try Supermodel Free