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
  5939a6a7_ba70_4110_9f5e_68bf8730561d["DropdownMenuSubTrigger()"]
  03fe0923_6a22_f444_bb2e_171531881308["dropdown-menu.tsx"]
  5939a6a7_ba70_4110_9f5e_68bf8730561d -->|defined in| 03fe0923_6a22_f444_bb2e_171531881308
  style 5939a6a7_ba70_4110_9f5e_68bf8730561d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/examples/radix/ui/dropdown-menu.tsx lines 216–238

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-open:bg-accent data-open:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground flex cursor-default items-center gap-1.5 rounded-md px-1.5 py-1 text-sm outline-hidden select-none data-inset:pl-7 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
        className
      )}
      {...props}
    >
      {children}
      <ChevronRightIcon className="cn-rtl-flip ml-auto" />
    </DropdownMenuPrimitive.SubTrigger>
  )
}

Subdomains

Frequently Asked Questions

What does DropdownMenuSubTrigger() do?
DropdownMenuSubTrigger() is a function in the ui codebase, defined in apps/v4/examples/radix/ui/dropdown-menu.tsx.
Where is DropdownMenuSubTrigger() defined?
DropdownMenuSubTrigger() is defined in apps/v4/examples/radix/ui/dropdown-menu.tsx at line 216.

Analyze Your Own Codebase

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

Try Supermodel Free