Home / Function/ ContextMenuSubTrigger() — ui Function Reference

ContextMenuSubTrigger() — ui Function Reference

Architecture documentation for the ContextMenuSubTrigger() function in context-menu.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  fcd02a17_6e57_7f02_c4f5_cd15b7bc9fc6["ContextMenuSubTrigger()"]
  44ab6345_6294_6c88_5d38_b9e0242aaa34["context-menu.tsx"]
  fcd02a17_6e57_7f02_c4f5_cd15b7bc9fc6 -->|defined in| 44ab6345_6294_6c88_5d38_b9e0242aaa34
  style fcd02a17_6e57_7f02_c4f5_cd15b7bc9fc6 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/examples/radix/ui-rtl/context-menu.tsx lines 103–125

function ContextMenuSubTrigger({
  className,
  inset,
  children,
  ...props
}: React.ComponentProps<typeof ContextMenuPrimitive.SubTrigger> & {
  inset?: boolean
}) {
  return (
    <ContextMenuPrimitive.SubTrigger
      data-slot="context-menu-sub-trigger"
      data-inset={inset}
      className={cn(
        "focus:bg-accent focus:text-accent-foreground data-open:bg-accent data-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" />
    </ContextMenuPrimitive.SubTrigger>
  )
}

Subdomains

Frequently Asked Questions

What does ContextMenuSubTrigger() do?
ContextMenuSubTrigger() is a function in the ui codebase, defined in apps/v4/examples/radix/ui-rtl/context-menu.tsx.
Where is ContextMenuSubTrigger() defined?
ContextMenuSubTrigger() is defined in apps/v4/examples/radix/ui-rtl/context-menu.tsx at line 103.

Analyze Your Own Codebase

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

Try Supermodel Free