MCPcopy Index your code
hub / github.com/BingyanStudio/github-analyzer / SelectContent

Function SelectContent

web/src/components/ui/select.tsx:51–84  ·  view source on GitHub ↗
({
  className,
  children,
  position = "popper",
  ...props
}: React.ComponentProps<typeof SelectPrimitive.Content>)

Source from the content-addressed store, hash-verified

49}
50
51function SelectContent({
52 className,
53 children,
54 position = "popper",
55 ...props
56}: React.ComponentProps<typeof SelectPrimitive.Content>) {
57 return (
58 <SelectPrimitive.Portal>
59 <SelectPrimitive.Content
60 data-slot="select-content"
61 className={cn(
62 "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 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md",
63 position === "popper" &&
64 "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
65 className
66 )}
67 position={position}
68 {...props}
69 >
70 <SelectScrollUpButton />
71 <SelectPrimitive.Viewport
72 className={cn(
73 "p-1",
74 position === "popper" &&
75 "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"
76 )}
77 >
78 {children}
79 </SelectPrimitive.Viewport>
80 <SelectScrollDownButton />
81 </SelectPrimitive.Content>
82 </SelectPrimitive.Portal>
83 )
84}
85
86function SelectLabel({
87 className,

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected