Function
MenubarTrigger
({
className,
...props
}: React.ComponentProps<typeof MenubarPrimitive.Trigger>)
Source from the content-addressed store, hash-verified
| 49 | } |
| 50 | |
| 51 | function MenubarTrigger({ |
| 52 | className, |
| 53 | ...props |
| 54 | }: React.ComponentProps<typeof MenubarPrimitive.Trigger>) { |
| 55 | return ( |
| 56 | <MenubarPrimitive.Trigger |
| 57 | data-slot="menubar-trigger" |
| 58 | className={cn( |
| 59 | "focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex items-center rounded-sm px-2 py-1 text-sm font-medium outline-hidden select-none", |
| 60 | className |
| 61 | )} |
| 62 | {...props} |
| 63 | /> |
| 64 | ) |
| 65 | } |
| 66 | |
| 67 | function MenubarContent({ |
| 68 | className, |
Callers
nothing calls this directly
Tested by
no test coverage detected