Home / Function/ NavMain() — ui Function Reference

NavMain() — ui Function Reference

Architecture documentation for the NavMain() function in nav-main.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  ab4d3c34_2220_cd7e_b206_6ad7dbce9fad["NavMain()"]
  e89525a7_7a1d_3d04_a577_99bf80ffe71d["nav-main.tsx"]
  ab4d3c34_2220_cd7e_b206_6ad7dbce9fad -->|defined in| e89525a7_7a1d_3d04_a577_99bf80ffe71d
  style ab4d3c34_2220_cd7e_b206_6ad7dbce9fad fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/registry/new-york-v4/blocks/sidebar-15/components/nav-main.tsx lines 11–35

export function NavMain({
  items,
}: {
  items: {
    title: string
    url: string
    icon: LucideIcon
    isActive?: boolean
  }[]
}) {
  return (
    <SidebarMenu>
      {items.map((item) => (
        <SidebarMenuItem key={item.title}>
          <SidebarMenuButton asChild isActive={item.isActive}>
            <a href={item.url}>
              <item.icon />
              <span>{item.title}</span>
            </a>
          </SidebarMenuButton>
        </SidebarMenuItem>
      ))}
    </SidebarMenu>
  )
}

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free