Home / Function/ DropdownMenuRadioItem() — ui Function Reference

DropdownMenuRadioItem() — ui Function Reference

Architecture documentation for the DropdownMenuRadioItem() function in dropdown-menu.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  d26ef511_4d61_d5b6_f77a_4f1ee059f70f["DropdownMenuRadioItem()"]
  b9ced632_5074_1f81_072b_9271c5dcc01c["dropdown-menu.tsx"]
  d26ef511_4d61_d5b6_f77a_4f1ee059f70f -->|defined in| b9ced632_5074_1f81_072b_9271c5dcc01c
  style d26ef511_4d61_d5b6_f77a_4f1ee059f70f fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

deprecated/www/registry/new-york/ui/dropdown-menu.tsx lines 123–139

>(({ className, children, ...props }, ref) => (
  <DropdownMenuPrimitive.RadioItem
    ref={ref}
    className={cn(
      "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
      className
    )}
    {...props}
  >
    <span className="absolute left-2 flex h-3.5 w-3.5 items-center justify-center">
      <DropdownMenuPrimitive.ItemIndicator>
        <Circle className="h-2 w-2 fill-current" />
      </DropdownMenuPrimitive.ItemIndicator>
    </span>
    {children}
  </DropdownMenuPrimitive.RadioItem>
))

Subdomains

Frequently Asked Questions

What does DropdownMenuRadioItem() do?
DropdownMenuRadioItem() is a function in the ui codebase, defined in deprecated/www/registry/new-york/ui/dropdown-menu.tsx.
Where is DropdownMenuRadioItem() defined?
DropdownMenuRadioItem() is defined in deprecated/www/registry/new-york/ui/dropdown-menu.tsx at line 123.

Analyze Your Own Codebase

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

Try Supermodel Free