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

Function ContextMenuCheckboxItem

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

Source from the content-addressed store, hash-verified

135}
136
137function ContextMenuCheckboxItem({
138 className,
139 children,
140 checked,
141 ...props
142}: React.ComponentProps<typeof ContextMenuPrimitive.CheckboxItem>) {
143 return (
144 <ContextMenuPrimitive.CheckboxItem
145 data-slot="context-menu-checkbox-item"
146 className={cn(
147 "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",
148 className
149 )}
150 checked={checked}
151 {...props}
152 >
153 <span className="pointer-events-none absolute left-2 flex size-3.5 items-center justify-center">
154 <ContextMenuPrimitive.ItemIndicator>
155 <CheckIcon className="size-4" />
156 </ContextMenuPrimitive.ItemIndicator>
157 </span>
158 {children}
159 </ContextMenuPrimitive.CheckboxItem>
160 )
161}
162
163function ContextMenuRadioItem({
164 className,

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected