MCPcopy Create free account
hub / github.com/evolify/dumpfun / DropdownMenuSubTrigger

Function DropdownMenuSubTrigger

common/components/ui/dropdown-menu.tsx:199–221  ·  view source on GitHub ↗
({
  className,
  inset,
  children,
  ...props
}: React.ComponentProps<typeof DropdownMenuPrimitive.SubTrigger> & {
  inset?: boolean
})

Source from the content-addressed store, hash-verified

197}
198
199function DropdownMenuSubTrigger({
200 className,
201 inset,
202 children,
203 ...props
204}: React.ComponentProps<typeof DropdownMenuPrimitive.SubTrigger> & {
205 inset?: boolean
206}) {
207 return (
208 <DropdownMenuPrimitive.SubTrigger
209 data-slot="dropdown-menu-sub-trigger"
210 data-inset={inset}
211 className={cn(
212 "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",
213 className
214 )}
215 {...props}
216 >
217 {children}
218 <ChevronRightIcon className="ml-auto size-4" />
219 </DropdownMenuPrimitive.SubTrigger>
220 )
221}
222
223function DropdownMenuSubContent({
224 className,

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected