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

Relationship Graph

Source Code

apps/v4/examples/base/ui-rtl/dropdown-menu.tsx lines 105–127

function DropdownMenuSubTrigger({
  className,
  inset,
  children,
  ...props
}: MenuPrimitive.SubmenuTrigger.Props & {
  inset?: boolean
}) {
  return (
    <MenuPrimitive.SubmenuTrigger
      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 data-popup-open:bg-accent data-popup-open: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:ps-7 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
        className
      )}
      {...props}
    >
      {children}
      <ChevronRightIcon className="ms-auto rtl:rotate-180" />
    </MenuPrimitive.SubmenuTrigger>
  )
}

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free