Function
MenubarTrigger
({
className,
...props
}: React.ComponentProps<typeof MenubarPrimitive.Trigger>)
Source from the content-addressed store, hash-verified
| 36 | } |
| 37 | |
| 38 | function 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 | |
| 54 | function MenubarContent({ |
| 55 | className, |
Callers
nothing calls this directly
Tested by
no test coverage detected