Function
DropdownMenuSubTrigger
({
className,
inset,
children,
...props
}: MenuPrimitive.SubmenuTrigger.Props & {
inset?: boolean;
})
Source from the content-addressed store, hash-verified
| 105 | } |
| 106 | |
| 107 | function DropdownMenuSubTrigger({ |
| 108 | className, |
| 109 | inset, |
| 110 | children, |
| 111 | ...props |
| 112 | }: MenuPrimitive.SubmenuTrigger.Props & { |
| 113 | inset?: boolean; |
| 114 | }) { |
| 115 | return ( |
| 116 | <MenuPrimitive.SubmenuTrigger |
| 117 | data-slot="dropdown-menu-sub-trigger" |
| 118 | data-inset={inset} |
| 119 | className={cn( |
| 120 | "focus:bg-accent focus:text-accent-foreground data-open:bg-accent data-open:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground gap-2 rounded-none px-2 py-2 text-xs [&_svg:not([class*='size-'])]:size-4 flex cursor-default items-center outline-hidden select-none data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0", |
| 121 | className |
| 122 | )} |
| 123 | {...props} |
| 124 | > |
| 125 | {children} |
| 126 | <HugeiconsIcon |
| 127 | icon={ArrowRight01Icon} |
| 128 | strokeWidth={2} |
| 129 | className="ml-auto" |
| 130 | /> |
| 131 | </MenuPrimitive.SubmenuTrigger> |
| 132 | ); |
| 133 | } |
| 134 | |
| 135 | function DropdownMenuSubContent({ |
| 136 | align = "start", |
Callers
nothing calls this directly
Tested by
no test coverage detected