MCPcopy
hub / github.com/tinyauthapp/tinyauth / DropdownMenuContent

Function DropdownMenuContent

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

Source from the content-addressed store, hash-verified

30}
31
32function DropdownMenuContent({
33 className,
34 sideOffset = 4,
35 ...props
36}: React.ComponentProps<typeof DropdownMenuPrimitive.Content>) {
37 return (
38 <DropdownMenuPrimitive.Portal>
39 <DropdownMenuPrimitive.Content
40 data-slot="dropdown-menu-content"
41 sideOffset={sideOffset}
42 className={cn(
43 "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",
44 className
45 )}
46 {...props}
47 />
48 </DropdownMenuPrimitive.Portal>
49 )
50}
51
52function DropdownMenuGroup({
53 ...props

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected