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

Relationship Graph

Source Code

apps/v4/examples/radix/ui-rtl/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: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" />
    </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-rtl/dropdown-menu.tsx.
Where is DropdownMenuSubTrigger() defined?
DropdownMenuSubTrigger() is defined in apps/v4/examples/radix/ui-rtl/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