MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / SelectItem

Function SelectItem

apps/start/src/components/ui/select.tsx:98–120  ·  view source on GitHub ↗
({
  className,
  children,
  ...props
}: React.ComponentProps<typeof SelectPrimitive.Item>)

Source from the content-addressed store, hash-verified

96}
97
98function SelectItem({
99 className,
100 children,
101 ...props
102}: React.ComponentProps<typeof SelectPrimitive.Item>) {
103 return (
104 <SelectPrimitive.Item
105 className={cn(
106 "relative flex w-full cursor-default select-none items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",
107 className
108 )}
109 data-slot="select-item"
110 {...props}
111 >
112 <span className="absolute right-2 flex size-3.5 items-center justify-center">
113 <SelectPrimitive.ItemIndicator>
114 <CheckIcon className="size-4" />
115 </SelectPrimitive.ItemIndicator>
116 </span>
117 <SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText>
118 </SelectPrimitive.Item>
119 );
120}
121
122function SelectSeparator({
123 className,

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected