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

Function ContextMenuRadioItem

src/components/ui/context-menu.tsx:163–185  ·  view source on GitHub ↗
({
  className,
  children,
  ...props
}: React.ComponentProps<typeof ContextMenuPrimitive.RadioItem>)

Source from the content-addressed store, hash-verified

161}
162
163function ContextMenuRadioItem({
164 className,
165 children,
166 ...props
167}: React.ComponentProps<typeof ContextMenuPrimitive.RadioItem>) {
168 return (
169 <ContextMenuPrimitive.RadioItem
170 data-slot="context-menu-radio-item"
171 className={cn(
172 "focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
173 className
174 )}
175 {...props}
176 >
177 <span className="pointer-events-none absolute left-2 flex size-3.5 items-center justify-center">
178 <ContextMenuPrimitive.ItemIndicator>
179 <CircleIcon className="size-2 fill-current" />
180 </ContextMenuPrimitive.ItemIndicator>
181 </span>
182 {children}
183 </ContextMenuPrimitive.RadioItem>
184 )
185}
186
187function ContextMenuLabel({
188 className,

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected