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

Function NavigationMenuViewport

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

Source from the content-addressed store, hash-verified

100}
101
102function NavigationMenuViewport({
103 className,
104 ...props
105}: React.ComponentProps<typeof NavigationMenuPrimitive.Viewport>) {
106 return (
107 <div
108 className={cn(
109 "absolute top-full left-0 isolate z-50 flex justify-center"
110 )}
111 >
112 <NavigationMenuPrimitive.Viewport
113 data-slot="navigation-menu-viewport"
114 className={cn(
115 "origin-top-center bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border shadow md:w-[var(--radix-navigation-menu-viewport-width)]",
116 className
117 )}
118 {...props}
119 />
120 </div>
121 )
122}
123
124function NavigationMenuLink({
125 className,

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected