MCPcopy Create free account
hub / github.com/TheOrcDev/github-creature / DropdownMenuRadioItem

Function DropdownMenuRadioItem

components/ui/dropdown-menu.tsx:197–222  ·  view source on GitHub ↗
({
  className,
  children,
  ...props
}: MenuPrimitive.RadioItem.Props)

Source from the content-addressed store, hash-verified

195}
196
197function DropdownMenuRadioItem({
198 className,
199 children,
200 ...props
201}: MenuPrimitive.RadioItem.Props) {
202 return (
203 <MenuPrimitive.RadioItem
204 data-slot="dropdown-menu-radio-item"
205 className={cn(
206 "focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground gap-2 rounded-none py-2 pr-8 pl-2 text-xs [&_svg:not([class*='size-'])]:size-4 relative flex cursor-default items-center outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0",
207 className
208 )}
209 {...props}
210 >
211 <span
212 className="pointer-events-none absolute right-2 flex items-center justify-center pointer-events-none"
213 data-slot="dropdown-menu-radio-item-indicator"
214 >
215 <MenuPrimitive.RadioItemIndicator>
216 <HugeiconsIcon icon={Tick02Icon} strokeWidth={2} />
217 </MenuPrimitive.RadioItemIndicator>
218 </span>
219 {children}
220 </MenuPrimitive.RadioItem>
221 );
222}
223
224function DropdownMenuSeparator({
225 className,

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected