NavigationMenuPositioner() — ui Function Reference
Architecture documentation for the NavigationMenuPositioner() function in navigation-menu.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 6f4abbb9_26f5_fb3d_959c_02c47dabc8fb["NavigationMenuPositioner()"] 28f9c0f9_7701_0c25_21fd_03fbcc2328e9["navigation-menu.tsx"] 6f4abbb9_26f5_fb3d_959c_02c47dabc8fb -->|defined in| 28f9c0f9_7701_0c25_21fd_03fbcc2328e9 style 6f4abbb9_26f5_fb3d_959c_02c47dabc8fb fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/examples/base/ui/navigation-menu.tsx lines 97–124
function NavigationMenuPositioner({
className,
side = "bottom",
sideOffset = 8,
align = "start",
alignOffset = 0,
...props
}: NavigationMenuPrimitive.Positioner.Props) {
return (
<NavigationMenuPrimitive.Portal>
<NavigationMenuPrimitive.Positioner
side={side}
sideOffset={sideOffset}
align={align}
alignOffset={alignOffset}
className={cn(
"isolate z-50 h-(--positioner-height) w-(--positioner-width) max-w-(--available-width) transition-[top,left,right,bottom] duration-[0.35s] ease-[cubic-bezier(0.22,1,0.36,1)] data-instant:transition-none data-[side=bottom]:before:top-[-10px] data-[side=bottom]:before:right-0 data-[side=bottom]:before:left-0",
className
)}
{...props}
>
<NavigationMenuPrimitive.Popup className="bg-popover text-popover-foreground ring-foreground/10 data-[ending-style]:easing-[ease] xs:w-(--popup-width) relative h-(--popup-height) w-(--popup-width) origin-(--transform-origin) rounded-lg shadow ring-1 transition-[opacity,transform,width,height,scale,translate] duration-[0.35s] ease-[cubic-bezier(0.22,1,0.36,1)] outline-none data-ending-style:scale-90 data-ending-style:opacity-0 data-ending-style:duration-150 data-starting-style:scale-90 data-starting-style:opacity-0">
<NavigationMenuPrimitive.Viewport className="relative size-full overflow-hidden" />
</NavigationMenuPrimitive.Popup>
</NavigationMenuPrimitive.Positioner>
</NavigationMenuPrimitive.Portal>
)
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does NavigationMenuPositioner() do?
NavigationMenuPositioner() is a function in the ui codebase, defined in apps/v4/examples/base/ui/navigation-menu.tsx.
Where is NavigationMenuPositioner() defined?
NavigationMenuPositioner() is defined in apps/v4/examples/base/ui/navigation-menu.tsx at line 97.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free