Function
MenubarSubTrigger
({
className,
inset,
children,
...props
}: React.ComponentProps<typeof MenubarPrimitive.SubTrigger> & {
inset?: boolean
})
Source from the content-addressed store, hash-verified
| 217 | } |
| 218 | |
| 219 | function MenubarSubTrigger({ |
| 220 | className, |
| 221 | inset, |
| 222 | children, |
| 223 | ...props |
| 224 | }: React.ComponentProps<typeof MenubarPrimitive.SubTrigger> & { |
| 225 | inset?: boolean |
| 226 | }) { |
| 227 | return ( |
| 228 | <MenubarPrimitive.SubTrigger |
| 229 | data-slot="menubar-sub-trigger" |
| 230 | data-inset={inset} |
| 231 | className={cn( |
| 232 | "focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-none select-none data-[inset]:pl-8", |
| 233 | className |
| 234 | )} |
| 235 | {...props} |
| 236 | > |
| 237 | {children} |
| 238 | <ChevronRightIcon className="ml-auto h-4 w-4" /> |
| 239 | </MenubarPrimitive.SubTrigger> |
| 240 | ) |
| 241 | } |
| 242 | |
| 243 | function MenubarSubContent({ |
| 244 | className, |
Callers
nothing calls this directly
Tested by
no test coverage detected