Home / Function/ ContextMenuRadioItem() — ui Function Reference

ContextMenuRadioItem() — ui Function Reference

Architecture documentation for the ContextMenuRadioItem() function in context-menu.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  efe99f7a_ab6d_0a70_4528_64e7e855ad69["ContextMenuRadioItem()"]
  5d105852_232b_d03d_d20e_db71f332c957["context-menu.tsx"]
  efe99f7a_ab6d_0a70_4528_64e7e855ad69 -->|defined in| 5d105852_232b_d03d_d20e_db71f332c957
  style efe99f7a_ab6d_0a70_4528_64e7e855ad69 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

deprecated/www/registry/new-york/ui/context-menu.tsx lines 119–135

>(({ className, children, ...props }, ref) => (
  <ContextMenuPrimitive.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 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">
      <ContextMenuPrimitive.ItemIndicator>
        <Circle className="h-4 w-4 fill-current" />
      </ContextMenuPrimitive.ItemIndicator>
    </span>
    {children}
  </ContextMenuPrimitive.RadioItem>
))

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free