RadioGroupItem() — ui Function Reference
Architecture documentation for the RadioGroupItem() function in radio-group.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 4ae2429d_0c0a_c389_7e16_4226fcc0087a["RadioGroupItem()"] 5f3ca68c_7691_c719_74f2_8d2a79106b51["radio-group.tsx"] 4ae2429d_0c0a_c389_7e16_4226fcc0087a -->|defined in| 5f3ca68c_7691_c719_74f2_8d2a79106b51 style 4ae2429d_0c0a_c389_7e16_4226fcc0087a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/registry/new-york-v4/ui/radio-group.tsx lines 22–43
function RadioGroupItem({
className,
...props
}: React.ComponentProps<typeof RadioGroupPrimitive.Item>) {
return (
<RadioGroupPrimitive.Item
data-slot="radio-group-item"
className={cn(
"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",
className
)}
{...props}
>
<RadioGroupPrimitive.Indicator
data-slot="radio-group-indicator"
className="relative flex items-center justify-center"
>
<CircleIcon className="fill-primary absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2" />
</RadioGroupPrimitive.Indicator>
</RadioGroupPrimitive.Item>
)
}
Domain
Subdomains
Source
Frequently Asked Questions
What does RadioGroupItem() do?
RadioGroupItem() is a function in the ui codebase, defined in apps/v4/registry/new-york-v4/ui/radio-group.tsx.
Where is RadioGroupItem() defined?
RadioGroupItem() is defined in apps/v4/registry/new-york-v4/ui/radio-group.tsx at line 22.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free