DropdownMenuContent() — ui Function Reference
Architecture documentation for the DropdownMenuContent() function in dropdown-menu.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 244fff58_0bca_41d2_912d_1a709623ee4e["DropdownMenuContent()"] 03fe0923_6a22_f444_bb2e_171531881308["dropdown-menu.tsx"] 244fff58_0bca_41d2_912d_1a709623ee4e -->|defined in| 03fe0923_6a22_f444_bb2e_171531881308 style 244fff58_0bca_41d2_912d_1a709623ee4e fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/examples/radix/ui/dropdown-menu.tsx lines 33–53
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(
"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 cn-menu-target z-50 max-h-(--radix-dropdown-menu-content-available-height) w-(--radix-dropdown-menu-trigger-width) min-w-32 origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-lg p-1 shadow-md ring-1 duration-100 data-[state=closed]:overflow-hidden",
className
)}
{...props}
/>
</DropdownMenuPrimitive.Portal>
)
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does DropdownMenuContent() do?
DropdownMenuContent() is a function in the ui codebase, defined in apps/v4/examples/radix/ui/dropdown-menu.tsx.
Where is DropdownMenuContent() defined?
DropdownMenuContent() is defined in apps/v4/examples/radix/ui/dropdown-menu.tsx at line 33.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free