Home / Function/ MenubarSubContent() — ui Function Reference

MenubarSubContent() — ui Function Reference

Architecture documentation for the MenubarSubContent() function in menubar.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  e0961fdb_332a_12ff_abf3_4206051c444e["MenubarSubContent()"]
  777e5a95_16ff_71be_01af_7ede78fded96["menubar.tsx"]
  e0961fdb_332a_12ff_abf3_4206051c444e -->|defined in| 777e5a95_16ff_71be_01af_7ede78fded96
  style e0961fdb_332a_12ff_abf3_4206051c444e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/examples/radix/ui-rtl/menubar.tsx lines 250–264

function MenubarSubContent({
  className,
  ...props
}: React.ComponentProps<typeof MenubarPrimitive.SubContent>) {
  return (
    <MenubarPrimitive.SubContent
      data-slot="menubar-sub-content"
      className={cn(
        "bg-popover text-popover-foreground 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 ring-foreground/10 cn-menu-target z-50 min-w-32 origin-(--radix-menubar-content-transform-origin) overflow-hidden rounded-lg p-1 shadow-lg ring-1 duration-100",
        className
      )}
      {...props}
    />
  )
}

Subdomains

Frequently Asked Questions

What does MenubarSubContent() do?
MenubarSubContent() is a function in the ui codebase, defined in apps/v4/examples/radix/ui-rtl/menubar.tsx.
Where is MenubarSubContent() defined?
MenubarSubContent() is defined in apps/v4/examples/radix/ui-rtl/menubar.tsx at line 250.

Analyze Your Own Codebase

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

Try Supermodel Free