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

Relationship Graph

Source Code

apps/v4/registry/bases/radix/ui/dropdown-menu.tsx lines 87–124

function DropdownMenuCheckboxItem({
  className,
  children,
  checked,
  inset,
  ...props
}: React.ComponentProps<typeof DropdownMenuPrimitive.CheckboxItem> & {
  inset?: boolean
}) {
  return (
    <DropdownMenuPrimitive.CheckboxItem
      data-slot="dropdown-menu-checkbox-item"
      data-inset={inset}
      className={cn(
        "cn-dropdown-menu-checkbox-item 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",
        className
      )}
      checked={checked}
      {...props}
    >
      <span
        className="cn-dropdown-menu-item-indicator pointer-events-none"
        data-slot="dropdown-menu-checkbox-item-indicator"
      >
        <DropdownMenuPrimitive.ItemIndicator>
          <IconPlaceholder
            lucide="CheckIcon"
            tabler="IconCheck"
            hugeicons="Tick02Icon"
            phosphor="CheckIcon"
            remixicon="RiCheckLine"
          />
        </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/bases/radix/ui/dropdown-menu.tsx.
Where is DropdownMenuCheckboxItem() defined?
DropdownMenuCheckboxItem() is defined in apps/v4/registry/bases/radix/ui/dropdown-menu.tsx at line 87.

Analyze Your Own Codebase

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

Try Supermodel Free