Home / Function/ DropdownMenuContent() — ui Function Reference

DropdownMenuContent() — ui Function Reference

Architecture documentation for the DropdownMenuContent() function in dropdown-menu.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  fb024a4b_2028_21ab_3a73_0df76ff113de["DropdownMenuContent()"]
  dd52e030_1703_c7e9_8247_9cc43bf2410f["dropdown-menu.tsx"]
  fb024a4b_2028_21ab_3a73_0df76ff113de -->|defined in| dd52e030_1703_c7e9_8247_9cc43bf2410f
  style fb024a4b_2028_21ab_3a73_0df76ff113de fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/examples/base/ui-rtl/dropdown-menu.tsx lines 20–52

function DropdownMenuContent({
  align = "start",
  alignOffset = 0,
  side = "bottom",
  sideOffset = 4,
  className,
  ...props
}: MenuPrimitive.Popup.Props &
  Pick<
    MenuPrimitive.Positioner.Props,
    "align" | "alignOffset" | "side" | "sideOffset"
  >) {
  return (
    <MenuPrimitive.Portal>
      <MenuPrimitive.Positioner
        className="isolate z-50 outline-none"
        align={align}
        alignOffset={alignOffset}
        side={side}
        sideOffset={sideOffset}
      >
        <MenuPrimitive.Popup
          data-slot="dropdown-menu-content"
          className={cn(
            "data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/10 bg-popover text-popover-foreground data-[side=inline-start]:slide-in-from-end-2 data-[side=inline-end]:slide-in-from-start-2 cn-menu-target z-50 max-h-(--available-height) w-(--anchor-width) min-w-32 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-lg p-1 shadow-md ring-1 duration-100 outline-none data-closed:overflow-hidden",
            className
          )}
          {...props}
        />
      </MenuPrimitive.Positioner>
    </MenuPrimitive.Portal>
  )
}

Subdomains

Frequently Asked Questions

What does DropdownMenuContent() do?
DropdownMenuContent() is a function in the ui codebase, defined in apps/v4/examples/base/ui-rtl/dropdown-menu.tsx.
Where is DropdownMenuContent() defined?
DropdownMenuContent() is defined in apps/v4/examples/base/ui-rtl/dropdown-menu.tsx at line 20.

Analyze Your Own Codebase

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

Try Supermodel Free