Home / Function/ DropdownMenuItem() — ui Function Reference

DropdownMenuItem() — ui Function Reference

Architecture documentation for the DropdownMenuItem() function in dropdown-menu.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  6e84237c_25a0_a0e6_1608_6a79efbf7a89["DropdownMenuItem()"]
  6ddcda86_b172_0c9f_ca4d_3312218efc48["dropdown-menu.tsx"]
  6e84237c_25a0_a0e6_1608_6a79efbf7a89 -->|defined in| 6ddcda86_b172_0c9f_ca4d_3312218efc48
  style 6e84237c_25a0_a0e6_1608_6a79efbf7a89 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/registry/new-york-v4/ui/dropdown-menu.tsx lines 62–83

function DropdownMenuItem({
  className,
  inset,
  variant = "default",
  ...props
}: React.ComponentProps<typeof DropdownMenuPrimitive.Item> & {
  inset?: boolean
  variant?: "default" | "destructive"
}) {
  return (
    <DropdownMenuPrimitive.Item
      data-slot="dropdown-menu-item"
      data-inset={inset}
      data-variant={variant}
      className={cn(
        "focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
        className
      )}
      {...props}
    />
  )
}

Subdomains

Frequently Asked Questions

What does DropdownMenuItem() do?
DropdownMenuItem() is a function in the ui codebase, defined in apps/v4/registry/new-york-v4/ui/dropdown-menu.tsx.
Where is DropdownMenuItem() defined?
DropdownMenuItem() is defined in apps/v4/registry/new-york-v4/ui/dropdown-menu.tsx at line 62.

Analyze Your Own Codebase

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

Try Supermodel Free