MCPcopy Create free account
hub / github.com/code-with-antonio/nodebase / RadioGroupItem

Function RadioGroupItem

src/components/ui/radio-group.tsx:22–43  ·  view source on GitHub ↗
({
  className,
  ...props
}: React.ComponentProps<typeof RadioGroupPrimitive.Item>)

Source from the content-addressed store, hash-verified

20}
21
22function RadioGroupItem({
23 className,
24 ...props
25}: React.ComponentProps<typeof RadioGroupPrimitive.Item>) {
26 return (
27 <RadioGroupPrimitive.Item
28 data-slot="radio-group-item"
29 className={cn(
30 "border-input text-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 aspect-square size-4 shrink-0 rounded-full border shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",
31 className
32 )}
33 {...props}
34 >
35 <RadioGroupPrimitive.Indicator
36 data-slot="radio-group-indicator"
37 className="relative flex items-center justify-center"
38 >
39 <CircleIcon className="fill-primary absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2" />
40 </RadioGroupPrimitive.Indicator>
41 </RadioGroupPrimitive.Item>
42 )
43}
44
45export { RadioGroup, RadioGroupItem }

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected