Home / Function/ NavigationMenuPositioner() — ui Function Reference

NavigationMenuPositioner() — ui Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  cfaeb6c2_9a77_958f_4807_37cc48aa2013["NavigationMenuPositioner()"]
  008efb8a_71a5_b029_fb42_94382e768991["navigation-menu.tsx"]
  cfaeb6c2_9a77_958f_4807_37cc48aa2013 -->|defined in| 008efb8a_71a5_b029_fb42_94382e768991
  style cfaeb6c2_9a77_958f_4807_37cc48aa2013 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/examples/base/ui-rtl/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:start-0 data-[side=bottom]:before:end-0 data-[side=bottom]:before:top-[-10px]",
          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>
  )
}

Subdomains

Frequently Asked Questions

What does NavigationMenuPositioner() do?
NavigationMenuPositioner() is a function in the ui codebase, defined in apps/v4/examples/base/ui-rtl/navigation-menu.tsx.
Where is NavigationMenuPositioner() defined?
NavigationMenuPositioner() is defined in apps/v4/examples/base/ui-rtl/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