MCPcopy Create free account
hub / github.com/TheOrcDev/github-creature / DropdownMenuCheckboxItem

Function DropdownMenuCheckboxItem

components/ui/dropdown-menu.tsx:159–186  ·  view source on GitHub ↗
({
  className,
  children,
  checked,
  ...props
}: MenuPrimitive.CheckboxItem.Props)

Source from the content-addressed store, hash-verified

157}
158
159function DropdownMenuCheckboxItem({
160 className,
161 children,
162 checked,
163 ...props
164}: MenuPrimitive.CheckboxItem.Props) {
165 return (
166 <MenuPrimitive.CheckboxItem
167 data-slot="dropdown-menu-checkbox-item"
168 className={cn(
169 "focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground gap-2 rounded-none py-2 pr-8 pl-2 text-xs [&_svg:not([class*='size-'])]:size-4 relative flex cursor-default items-center outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0",
170 className
171 )}
172 checked={checked}
173 {...props}
174 >
175 <span
176 className="pointer-events-none absolute right-2 flex items-center justify-center pointer-events-none"
177 data-slot="dropdown-menu-checkbox-item-indicator"
178 >
179 <MenuPrimitive.CheckboxItemIndicator>
180 <HugeiconsIcon icon={Tick02Icon} strokeWidth={2} />
181 </MenuPrimitive.CheckboxItemIndicator>
182 </span>
183 {children}
184 </MenuPrimitive.CheckboxItem>
185 );
186}
187
188function DropdownMenuRadioGroup({ ...props }: MenuPrimitive.RadioGroup.Props) {
189 return (

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected