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

Relationship Graph

Source Code

apps/v4/examples/base/ui/dropdown-menu.tsx lines 153–184

function DropdownMenuCheckboxItem({
  className,
  children,
  checked,
  inset,
  ...props
}: MenuPrimitive.CheckboxItem.Props & {
  inset?: boolean
}) {
  return (
    <MenuPrimitive.CheckboxItem
      data-slot="dropdown-menu-checkbox-item"
      data-inset={inset}
      className={cn(
        "focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground relative flex cursor-default items-center gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 data-inset:pl-7 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
        className
      )}
      checked={checked}
      {...props}
    >
      <span
        className="pointer-events-none absolute right-2 flex items-center justify-center"
        data-slot="dropdown-menu-checkbox-item-indicator"
      >
        <MenuPrimitive.CheckboxItemIndicator>
          <CheckIcon />
        </MenuPrimitive.CheckboxItemIndicator>
      </span>
      {children}
    </MenuPrimitive.CheckboxItem>
  )
}

Subdomains

Frequently Asked Questions

What does DropdownMenuCheckboxItem() do?
DropdownMenuCheckboxItem() is a function in the ui codebase, defined in apps/v4/examples/base/ui/dropdown-menu.tsx.
Where is DropdownMenuCheckboxItem() defined?
DropdownMenuCheckboxItem() is defined in apps/v4/examples/base/ui/dropdown-menu.tsx at line 153.

Analyze Your Own Codebase

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

Try Supermodel Free