Home / Function/ DropdownMenuSubTrigger() — ui Function Reference

DropdownMenuSubTrigger() — ui Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

apps/v4/registry/new-york-v4/ui/dropdown-menu.tsx lines 201–223

function DropdownMenuSubTrigger({
  className,
  inset,
  children,
  ...props
}: React.ComponentProps<typeof DropdownMenuPrimitive.SubTrigger> & {
  inset?: boolean
}) {
  return (
    <DropdownMenuPrimitive.SubTrigger
      data-slot="dropdown-menu-sub-trigger"
      data-inset={inset}
      className={cn(
        "focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
        className
      )}
      {...props}
    >
      {children}
      <ChevronRightIcon className="ml-auto size-4" />
    </DropdownMenuPrimitive.SubTrigger>
  )
}

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free