Home / Function/ RadioGroupItem() — ui Function Reference

RadioGroupItem() — ui Function Reference

Architecture documentation for the RadioGroupItem() function in radio-group.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  fa0f23e9_1417_d2c7_964b_31cb7dea1d4d["RadioGroupItem()"]
  c6f04d82_cc95_a6c9_59fa_d68f2c80f336["radio-group.tsx"]
  fa0f23e9_1417_d2c7_964b_31cb7dea1d4d -->|defined in| c6f04d82_cc95_a6c9_59fa_d68f2c80f336
  style fa0f23e9_1417_d2c7_964b_31cb7dea1d4d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

deprecated/www/registry/default/ui/radio-group.tsx lines 26–41

>(({ className, ...props }, ref) => {
  return (
    <RadioGroupPrimitive.Item
      ref={ref}
      className={cn(
        "aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
        className
      )}
      {...props}
    >
      <RadioGroupPrimitive.Indicator className="flex items-center justify-center">
        <Circle className="h-2.5 w-2.5 fill-current text-current" />
      </RadioGroupPrimitive.Indicator>
    </RadioGroupPrimitive.Item>
  )
})

Subdomains

Frequently Asked Questions

What does RadioGroupItem() do?
RadioGroupItem() is a function in the ui codebase, defined in deprecated/www/registry/default/ui/radio-group.tsx.
Where is RadioGroupItem() defined?
RadioGroupItem() is defined in deprecated/www/registry/default/ui/radio-group.tsx at line 26.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free