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

Relationship Graph

Source Code

apps/v4/registry/new-york-v4/ui/dropdown-menu.tsx lines 34–52

function DropdownMenuContent({
  className,
  sideOffset = 4,
  ...props
}: React.ComponentProps<typeof DropdownMenuPrimitive.Content>) {
  return (
    <DropdownMenuPrimitive.Portal>
      <DropdownMenuPrimitive.Content
        data-slot="dropdown-menu-content"
        sideOffset={sideOffset}
        className={cn(
          "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=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 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",
          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/new-york-v4/ui/dropdown-menu.tsx.
Where is DropdownMenuContent() defined?
DropdownMenuContent() is defined in apps/v4/registry/new-york-v4/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