Home / Function/ ContextMenuSubContent() — ui Function Reference

ContextMenuSubContent() — ui Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  95db494d_d48d_0e4f_4e19_56c267a958e2["ContextMenuSubContent()"]
  a8278523_5891_13ac_c50b_9df3d37da6a2["context-menu.tsx"]
  95db494d_d48d_0e4f_4e19_56c267a958e2 -->|defined in| a8278523_5891_13ac_c50b_9df3d37da6a2
  style 95db494d_d48d_0e4f_4e19_56c267a958e2 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/registry/new-york-v4/ui/context-menu.tsx lines 80–94

function ContextMenuSubContent({
  className,
  ...props
}: React.ComponentProps<typeof ContextMenuPrimitive.SubContent>) {
  return (
    <ContextMenuPrimitive.SubContent
      data-slot="context-menu-sub-content"
      className={cn(
        "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--radix-context-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",
        className
      )}
      {...props}
    />
  )
}

Subdomains

Frequently Asked Questions

What does ContextMenuSubContent() do?
ContextMenuSubContent() is a function in the ui codebase, defined in apps/v4/registry/new-york-v4/ui/context-menu.tsx.
Where is ContextMenuSubContent() defined?
ContextMenuSubContent() is defined in apps/v4/registry/new-york-v4/ui/context-menu.tsx at line 80.

Analyze Your Own Codebase

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

Try Supermodel Free