MCPcopy Create free account
hub / github.com/code-with-antonio/nodebase / NavigationMenuLink

Function NavigationMenuLink

src/components/ui/navigation-menu.tsx:124–138  ·  view source on GitHub ↗
({
  className,
  ...props
}: React.ComponentProps<typeof NavigationMenuPrimitive.Link>)

Source from the content-addressed store, hash-verified

122}
123
124function NavigationMenuLink({
125 className,
126 ...props
127}: React.ComponentProps<typeof NavigationMenuPrimitive.Link>) {
128 return (
129 <NavigationMenuPrimitive.Link
130 data-slot="navigation-menu-link"
131 className={cn(
132 "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",
133 className
134 )}
135 {...props}
136 />
137 )
138}
139
140function NavigationMenuIndicator({
141 className,

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected