Home / Function/ NavigationMenuLink() — ui Function Reference

NavigationMenuLink() — ui Function Reference

Architecture documentation for the NavigationMenuLink() function in navigation-menu.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  38fb129f_b150_d971_f162_66a3e8158ea1["NavigationMenuLink()"]
  420dd9d0_1d7e_17e5_4905_f17921511220["navigation-menu.tsx"]
  38fb129f_b150_d971_f162_66a3e8158ea1 -->|defined in| 420dd9d0_1d7e_17e5_4905_f17921511220
  style 38fb129f_b150_d971_f162_66a3e8158ea1 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/registry/new-york-v4/ui/navigation-menu.tsx lines 124–138

function NavigationMenuLink({
  className,
  ...props
}: React.ComponentProps<typeof NavigationMenuPrimitive.Link>) {
  return (
    <NavigationMenuPrimitive.Link
      data-slot="navigation-menu-link"
      className={cn(
        "data-[active=true]:focus:bg-accent data-[active=true]:hover:bg-accent data-[active=true]:bg-accent/50 data-[active=true]:text-accent-foreground hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus-visible:ring-ring/50 [&_svg:not([class*='text-'])]:text-muted-foreground flex flex-col gap-1 rounded-sm p-2 text-sm transition-all outline-none focus-visible:ring-[3px] focus-visible:outline-1 [&_svg:not([class*='size-'])]:size-4",
        className
      )}
      {...props}
    />
  )
}

Subdomains

Frequently Asked Questions

What does NavigationMenuLink() do?
NavigationMenuLink() is a function in the ui codebase, defined in apps/v4/registry/new-york-v4/ui/navigation-menu.tsx.
Where is NavigationMenuLink() defined?
NavigationMenuLink() is defined in apps/v4/registry/new-york-v4/ui/navigation-menu.tsx at line 124.

Analyze Your Own Codebase

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

Try Supermodel Free