Home / Function/ DropdownMenuCheckboxItem() — ui Function Reference

DropdownMenuCheckboxItem() — ui Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

deprecated/www/registry/new-york/ui/dropdown-menu.tsx lines 99–116

>(({ className, children, checked, ...props }, ref) => (
  <DropdownMenuPrimitive.CheckboxItem
    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
    )}
    checked={checked}
    {...props}
  >
    <span className="absolute left-2 flex h-3.5 w-3.5 items-center justify-center">
      <DropdownMenuPrimitive.ItemIndicator>
        <Check className="h-4 w-4" />
      </DropdownMenuPrimitive.ItemIndicator>
    </span>
    {children}
  </DropdownMenuPrimitive.CheckboxItem>
))

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free