MCPcopy Create free account
hub / github.com/R44VC0RP/opencode.cafe / DropdownMenuContent

Function DropdownMenuContent

components/ui/dropdown-menu.tsx:34–59  ·  view source on GitHub ↗
({
  className,
  sideOffset = 4,
  ...props
}: React.ComponentProps<typeof DropdownMenuPrimitive.Content>)

Source from the content-addressed store, hash-verified

32}
33
34function DropdownMenuContent({
35 className,
36 sideOffset = 4,
37 ...props
38}: React.ComponentProps<typeof DropdownMenuPrimitive.Content>) {
39 return (
40 <DropdownMenuPrimitive.Portal>
41 <DropdownMenuPrimitive.Content
42 data-slot="dropdown-menu-content"
43 sideOffset={sideOffset}
44 className={cn(
45 "z-50 min-w-[160px] overflow-hidden rounded-md p-1",
46 "border border-[var(--color-border)] bg-[var(--color-bg)]",
47 "shadow-[0_4px_12px_rgba(0,0,0,0.1)] dark:shadow-[0_4px_12px_rgba(0,0,0,0.3)]",
48 "data-[state=open]:animate-in data-[state=closed]:animate-out",
49 "data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
50 "data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95",
51 "data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2",
52 "data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
53 className
54 )}
55 {...props}
56 />
57 </DropdownMenuPrimitive.Portal>
58 )
59}
60
61function DropdownMenuGroup({
62 ...props

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected