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

Function DropdownMenuSubContent

components/ui/dropdown-menu.tsx:248–269  ·  view source on GitHub ↗
({
  className,
  ...props
}: React.ComponentProps<typeof DropdownMenuPrimitive.SubContent>)

Source from the content-addressed store, hash-verified

246}
247
248function DropdownMenuSubContent({
249 className,
250 ...props
251}: React.ComponentProps<typeof DropdownMenuPrimitive.SubContent>) {
252 return (
253 <DropdownMenuPrimitive.SubContent
254 data-slot="dropdown-menu-sub-content"
255 className={cn(
256 "z-50 min-w-[8rem] overflow-hidden rounded-md p-1",
257 "border border-[var(--color-border)] bg-[var(--color-bg)]",
258 "shadow-lg",
259 "data-[state=open]:animate-in data-[state=closed]:animate-out",
260 "data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
261 "data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95",
262 "data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2",
263 "data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
264 className
265 )}
266 {...props}
267 />
268 )
269}
270
271export {
272 DropdownMenu,

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected