MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / MenubarContent

Function MenubarContent

packages/react/src/components/menubar.tsx:54–76  ·  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

52}
53
54function MenubarContent({
55 className,
56 align = "start",
57 alignOffset = -4,
58 sideOffset = 8,
59 ...props
60}: React.ComponentProps<typeof MenubarPrimitive.Content>) {
61 return (
62 <MenubarPortal>
63 <MenubarPrimitive.Content
64 data-slot="menubar-content"
65 align={align}
66 alignOffset={alignOffset}
67 sideOffset={sideOffset}
68 className={cn(
69 "z-50 min-w-[12rem] origin-(--radix-menubar-content-transform-origin) overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md 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 data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",
70 className,
71 )}
72 {...props}
73 />
74 </MenubarPortal>
75 );
76}
77
78function MenubarItem({
79 className,

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected