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
  400aaa4a_e73b_67c6_4554_3fbbe3f0ab51["DropdownMenuContent()"]
  cc838d33_03fa_f695_dc59_932579174a46["dropdown-menu.tsx"]
  400aaa4a_e73b_67c6_4554_3fbbe3f0ab51 -->|defined in| cc838d33_03fa_f695_dc59_932579174a46
  style 400aaa4a_e73b_67c6_4554_3fbbe3f0ab51 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/registry/bases/radix/ui/dropdown-menu.tsx lines 34–54

function DropdownMenuContent({
  className,
  align = "start",
  sideOffset = 4,
  ...props
}: React.ComponentProps<typeof DropdownMenuPrimitive.Content>) {
  return (
    <DropdownMenuPrimitive.Portal>
      <DropdownMenuPrimitive.Content
        data-slot="dropdown-menu-content"
        sideOffset={sideOffset}
        align={align}
        className={cn(
          "cn-dropdown-menu-content cn-menu-target z-50 max-h-(--radix-dropdown-menu-content-available-height) w-(--radix-dropdown-menu-trigger-width) origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto data-[state=closed]:overflow-hidden",
          className
        )}
        {...props}
      />
    </DropdownMenuPrimitive.Portal>
  )
}

Subdomains

Frequently Asked Questions

What does DropdownMenuContent() do?
DropdownMenuContent() is a function in the ui codebase, defined in apps/v4/registry/bases/radix/ui/dropdown-menu.tsx.
Where is DropdownMenuContent() defined?
DropdownMenuContent() is defined in apps/v4/registry/bases/radix/ui/dropdown-menu.tsx at line 34.

Analyze Your Own Codebase

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

Try Supermodel Free