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
  2fe513be_2abd_1fb4_44ed_bc3ea8f6bcdd["DropdownMenuCheckboxItem()"]
  d7b0e221_d151_7367_75f5_67f02423afab["dropdown-menu.tsx"]
  2fe513be_2abd_1fb4_44ed_bc3ea8f6bcdd -->|defined in| d7b0e221_d151_7367_75f5_67f02423afab
  style 2fe513be_2abd_1fb4_44ed_bc3ea8f6bcdd fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

deprecated/www/registry/default/ui/dropdown-menu.tsx lines 98–115

>(({ 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/default/ui/dropdown-menu.tsx.
Where is DropdownMenuCheckboxItem() defined?
DropdownMenuCheckboxItem() is defined in deprecated/www/registry/default/ui/dropdown-menu.tsx at line 98.

Analyze Your Own Codebase

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

Try Supermodel Free