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

Relationship Graph

Source Code

apps/v4/registry/new-york-v4/ui/dropdown-menu.tsx lines 85–109

function DropdownMenuCheckboxItem({
  className,
  children,
  checked,
  ...props
}: React.ComponentProps<typeof DropdownMenuPrimitive.CheckboxItem>) {
  return (
    <DropdownMenuPrimitive.CheckboxItem
      data-slot="dropdown-menu-checkbox-item"
      className={cn(
        "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",
        className
      )}
      checked={checked}
      {...props}
    >
      <span className="pointer-events-none absolute left-2 flex size-3.5 items-center justify-center">
        <DropdownMenuPrimitive.ItemIndicator>
          <CheckIcon className="size-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 apps/v4/registry/new-york-v4/ui/dropdown-menu.tsx.
Where is DropdownMenuCheckboxItem() defined?
DropdownMenuCheckboxItem() is defined in apps/v4/registry/new-york-v4/ui/dropdown-menu.tsx at line 85.

Analyze Your Own Codebase

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

Try Supermodel Free