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
  72fdb314_6108_3b72_9274_377f6e63c751["ContextMenuSubTrigger()"]
  5d105852_232b_d03d_d20e_db71f332c957["context-menu.tsx"]
  72fdb314_6108_3b72_9274_377f6e63c751 -->|defined in| 5d105852_232b_d03d_d20e_db71f332c957
  style 72fdb314_6108_3b72_9274_377f6e63c751 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

deprecated/www/registry/new-york/ui/context-menu.tsx lines 26–39

>(({ className, inset, children, ...props }, ref) => (
  <ContextMenuPrimitive.SubTrigger
    ref={ref}
    className={cn(
      "flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",
      inset && "pl-8",
      className
    )}
    {...props}
  >
    {children}
    <ChevronRight className="ml-auto h-4 w-4" />
  </ContextMenuPrimitive.SubTrigger>
))

Subdomains

Frequently Asked Questions

What does ContextMenuSubTrigger() do?
ContextMenuSubTrigger() is a function in the ui codebase, defined in deprecated/www/registry/new-york/ui/context-menu.tsx.
Where is ContextMenuSubTrigger() defined?
ContextMenuSubTrigger() is defined in deprecated/www/registry/new-york/ui/context-menu.tsx at line 26.

Analyze Your Own Codebase

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

Try Supermodel Free