dropdown-menu.tsx — ui Source File
Architecture documentation for dropdown-menu.tsx, a tsx file in the ui codebase. 4 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR cc838d33_03fa_f695_dc59_932579174a46["dropdown-menu.tsx"] 1d141819_425e_b5fd_4c8e_32f7c6a42cf2["react"] cc838d33_03fa_f695_dc59_932579174a46 --> 1d141819_425e_b5fd_4c8e_32f7c6a42cf2 9c463da6_747b_38dc_586b_cbb4873070b1["radix-ui"] cc838d33_03fa_f695_dc59_932579174a46 --> 9c463da6_747b_38dc_586b_cbb4873070b1 ef4051f4_aeb7_8d0c_a726_0ba96ad80cf6["utils"] cc838d33_03fa_f695_dc59_932579174a46 --> ef4051f4_aeb7_8d0c_a726_0ba96ad80cf6 de6fac54_74ca_6c25_8f8b_d1ba3287dbf2["icon-placeholder"] cc838d33_03fa_f695_dc59_932579174a46 --> de6fac54_74ca_6c25_8f8b_d1ba3287dbf2 style cc838d33_03fa_f695_dc59_932579174a46 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
"use client"
import * as React from "react"
import { DropdownMenu as DropdownMenuPrimitive } from "radix-ui"
import { cn } from "@/registry/bases/radix/lib/utils"
import { IconPlaceholder } from "@/app/(create)/components/icon-placeholder"
function DropdownMenu({
...props
}: React.ComponentProps<typeof DropdownMenuPrimitive.Root>) {
return <DropdownMenuPrimitive.Root data-slot="dropdown-menu" {...props} />
}
function DropdownMenuPortal({
...props
}: React.ComponentProps<typeof DropdownMenuPrimitive.Portal>) {
return (
<DropdownMenuPrimitive.Portal data-slot="dropdown-menu-portal" {...props} />
)
}
function DropdownMenuTrigger({
...props
}: React.ComponentProps<typeof DropdownMenuPrimitive.Trigger>) {
return (
<DropdownMenuPrimitive.Trigger
data-slot="dropdown-menu-trigger"
{...props}
/>
)
}
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>
)
}
function DropdownMenuGroup({
...props
}: React.ComponentProps<typeof DropdownMenuPrimitive.Group>) {
return (
<DropdownMenuPrimitive.Group data-slot="dropdown-menu-group" {...props} />
// ... (227 more lines)
Domain
Subdomains
Functions
- DropdownMenu()
- DropdownMenuCheckboxItem()
- DropdownMenuContent()
- DropdownMenuGroup()
- DropdownMenuItem()
- DropdownMenuLabel()
- DropdownMenuPortal()
- DropdownMenuRadioGroup()
- DropdownMenuRadioItem()
- DropdownMenuSeparator()
- DropdownMenuShortcut()
- DropdownMenuSub()
- DropdownMenuSubContent()
- DropdownMenuSubTrigger()
- DropdownMenuTrigger()
Dependencies
- icon-placeholder
- radix-ui
- react
- utils
Source
Frequently Asked Questions
What does dropdown-menu.tsx do?
dropdown-menu.tsx is a source file in the ui codebase, written in tsx. It belongs to the ComponentRegistry domain, ChartRegistry subdomain.
What functions are defined in dropdown-menu.tsx?
dropdown-menu.tsx defines 15 function(s): DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, and 5 more.
What does dropdown-menu.tsx depend on?
dropdown-menu.tsx imports 4 module(s): icon-placeholder, radix-ui, react, utils.
Where is dropdown-menu.tsx in the architecture?
dropdown-menu.tsx is located at apps/v4/registry/bases/radix/ui/dropdown-menu.tsx (domain: ComponentRegistry, subdomain: ChartRegistry, directory: apps/v4/registry/bases/radix/ui).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free