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
  3f531de6_56fc_8f83_de44_f504bf2cc806["NavMain()"]
  10c71d0a_42a5_91e3_fc39_182ee4781aaa["nav-main.tsx"]
  3f531de6_56fc_8f83_de44_f504bf2cc806 -->|defined in| 10c71d0a_42a5_91e3_fc39_182ee4781aaa
  style 3f531de6_56fc_8f83_de44_f504bf2cc806 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/registry/new-york-v4/blocks/sidebar-10/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-10/components/nav-main.tsx.
Where is NavMain() defined?
NavMain() is defined in apps/v4/registry/new-york-v4/blocks/sidebar-10/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