ContextMenuSubContent() — ui Function Reference
Architecture documentation for the ContextMenuSubContent() function in context-menu.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 1d53ac31_6a6d_8af3_bf73_dab6945be260["ContextMenuSubContent()"] 44ab6345_6294_6c88_5d38_b9e0242aaa34["context-menu.tsx"] 1d53ac31_6a6d_8af3_bf73_dab6945be260 -->|defined in| 44ab6345_6294_6c88_5d38_b9e0242aaa34 style 1d53ac31_6a6d_8af3_bf73_dab6945be260 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/examples/radix/ui-rtl/context-menu.tsx lines 127–141
function ContextMenuSubContent({
className,
...props
}: React.ComponentProps<typeof ContextMenuPrimitive.SubContent>) {
return (
<ContextMenuPrimitive.SubContent
data-slot="context-menu-sub-content"
className={cn(
"data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-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 bg-popover text-popover-foreground cn-menu-target z-50 min-w-32 origin-(--radix-context-menu-content-transform-origin) overflow-hidden rounded-lg border p-1 shadow-lg duration-100",
className
)}
{...props}
/>
)
}
Domain
Subdomains
Source
Frequently Asked Questions
What does ContextMenuSubContent() do?
ContextMenuSubContent() is a function in the ui codebase, defined in apps/v4/examples/radix/ui-rtl/context-menu.tsx.
Where is ContextMenuSubContent() defined?
ContextMenuSubContent() is defined in apps/v4/examples/radix/ui-rtl/context-menu.tsx at line 127.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free