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

Function MenubarTrigger

packages/react/src/components/menubar.tsx:38–52  ·  view source on GitHub ↗
({
  className,
  ...props
}: React.ComponentProps<typeof MenubarPrimitive.Trigger>)

Source from the content-addressed store, hash-verified

36}
37
38function MenubarTrigger({
39 className,
40 ...props
41}: React.ComponentProps<typeof MenubarPrimitive.Trigger>) {
42 return (
43 <MenubarPrimitive.Trigger
44 data-slot="menubar-trigger"
45 className={cn(
46 "flex items-center rounded-sm px-2 py-1 text-sm font-medium outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",
47 className,
48 )}
49 {...props}
50 />
51 );
52}
53
54function MenubarContent({
55 className,

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected