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 6ddcda86_b172_0c9f_ca4d_3312218efc48["dropdown-menu.tsx"] 1d141819_425e_b5fd_4c8e_32f7c6a42cf2["react"] 6ddcda86_b172_0c9f_ca4d_3312218efc48 --> 1d141819_425e_b5fd_4c8e_32f7c6a42cf2 d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3["lucide-react"] 6ddcda86_b172_0c9f_ca4d_3312218efc48 --> d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3 9c463da6_747b_38dc_586b_cbb4873070b1["radix-ui"] 6ddcda86_b172_0c9f_ca4d_3312218efc48 --> 9c463da6_747b_38dc_586b_cbb4873070b1 79081a1f_55a3_945a_fb8c_d53d6d3eab81["utils"] 6ddcda86_b172_0c9f_ca4d_3312218efc48 --> 79081a1f_55a3_945a_fb8c_d53d6d3eab81 style 6ddcda86_b172_0c9f_ca4d_3312218efc48 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
"use client"
import * as React from "react"
import { CheckIcon, ChevronRightIcon, CircleIcon } from "lucide-react"
import { DropdownMenu as DropdownMenuPrimitive } from "radix-ui"
import { cn } from "@/lib/utils"
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,
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>
)
}
function DropdownMenuGroup({
...props
}: React.ComponentProps<typeof DropdownMenuPrimitive.Group>) {
return (
<DropdownMenuPrimitive.Group data-slot="dropdown-menu-group" {...props} />
)
}
// ... (198 more lines)
Domain
Subdomains
Functions
- DropdownMenu()
- DropdownMenuCheckboxItem()
- DropdownMenuContent()
- DropdownMenuGroup()
- DropdownMenuItem()
- DropdownMenuLabel()
- DropdownMenuPortal()
- DropdownMenuRadioGroup()
- DropdownMenuRadioItem()
- DropdownMenuSeparator()
- DropdownMenuShortcut()
- DropdownMenuSub()
- DropdownMenuSubContent()
- DropdownMenuSubTrigger()
- DropdownMenuTrigger()
Dependencies
- lucide-react
- 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): lucide-react, radix-ui, react, utils.
Where is dropdown-menu.tsx in the architecture?
dropdown-menu.tsx is located at apps/v4/registry/new-york-v4/ui/dropdown-menu.tsx (domain: ComponentRegistry, subdomain: ChartRegistry, directory: apps/v4/registry/new-york-v4/ui).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free