MCPcopy Create free account
hub / github.com/code-with-antonio/nodebase / MenubarContent

Function MenubarContent

src/components/ui/menubar.tsx:67–89  ·  view source on GitHub ↗
({
  className,
  align = "start",
  alignOffset = -4,
  sideOffset = 8,
  ...props
}: React.ComponentProps<typeof MenubarPrimitive.Content>)

Source from the content-addressed store, hash-verified

65}
66
67function MenubarContent({
68 className,
69 align = "start",
70 alignOffset = -4,
71 sideOffset = 8,
72 ...props
73}: React.ComponentProps<typeof MenubarPrimitive.Content>) {
74 return (
75 <MenubarPortal>
76 <MenubarPrimitive.Content
77 data-slot="menubar-content"
78 align={align}
79 alignOffset={alignOffset}
80 sideOffset={sideOffset}
81 className={cn(
82 "bg-popover text-popover-foreground data-[state=open]:animate-in 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-[12rem] origin-(--radix-menubar-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-md",
83 className
84 )}
85 {...props}
86 />
87 </MenubarPortal>
88 )
89}
90
91function MenubarItem({
92 className,

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected