MCPcopy Create free account
hub / github.com/arctic-cli/interface / SelectItem

Function SelectItem

packages/web/components/ui/select.tsx:117–151  ·  view source on GitHub ↗
({
  className,
  children,
  ...props
}: SelectPrimitive.Item.Props)

Source from the content-addressed store, hash-verified

115}
116
117function SelectItem({
118 className,
119 children,
120 ...props
121}: SelectPrimitive.Item.Props) {
122 return (
123 <SelectPrimitive.Item
124 className={cn(
125 "grid min-h-8 in-data-[side=none]:min-w-[calc(var(--anchor-width)+1.25rem)] cursor-default grid-cols-[1rem_1fr] items-center gap-2 rounded-sm py-1 ps-2 pe-4 text-base outline-none data-disabled:pointer-events-none data-highlighted:bg-accent data-highlighted:text-accent-foreground data-disabled:opacity-64 sm:min-h-7 sm:text-sm [&_svg:not([class*='size-'])]:size-4.5 sm:[&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",
126 className,
127 )}
128 data-slot="select-item"
129 {...props}
130 >
131 <SelectPrimitive.ItemIndicator className="col-start-1">
132 <svg
133 fill="none"
134 height="24"
135 stroke="currentColor"
136 strokeLinecap="round"
137 strokeLinejoin="round"
138 strokeWidth="2"
139 viewBox="0 0 24 24"
140 width="24"
141 xmlns="http://www.w3.org/1500/svg"
142 >
143 <path d="M5.252 12.7 10.2 18.63 18.748 5.37" />
144 </svg>
145 </SelectPrimitive.ItemIndicator>
146 <SelectPrimitive.ItemText className="col-start-2 min-w-0">
147 {children}
148 </SelectPrimitive.ItemText>
149 </SelectPrimitive.Item>
150 );
151}
152
153function SelectSeparator({
154 className,

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected