Function
DropdownMenuSubTrigger
({
className,
inset,
children,
...props
}: React.ComponentProps<typeof DropdownMenuPrimitive.SubTrigger> & {
inset?: boolean
})
Source from the content-addressed store, hash-verified
| 199 | } |
| 200 | |
| 201 | function DropdownMenuSubTrigger({ |
| 202 | className, |
| 203 | inset, |
| 204 | children, |
| 205 | ...props |
| 206 | }: React.ComponentProps<typeof DropdownMenuPrimitive.SubTrigger> & { |
| 207 | inset?: boolean |
| 208 | }) { |
| 209 | return ( |
| 210 | <DropdownMenuPrimitive.SubTrigger |
| 211 | data-slot="dropdown-menu-sub-trigger" |
| 212 | data-inset={inset} |
| 213 | className={cn( |
| 214 | "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-hidden select-none data-[inset]:pl-8", |
| 215 | className |
| 216 | )} |
| 217 | {...props} |
| 218 | > |
| 219 | {children} |
| 220 | <ChevronRightIcon className="ml-auto size-4" /> |
| 221 | </DropdownMenuPrimitive.SubTrigger> |
| 222 | ) |
| 223 | } |
| 224 | |
| 225 | function DropdownMenuSubContent({ |
| 226 | className, |
Callers
nothing calls this directly
Tested by
no test coverage detected