Home / Function/ MenubarCheckboxItem() — ui Function Reference

MenubarCheckboxItem() — ui Function Reference

Architecture documentation for the MenubarCheckboxItem() function in menubar.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  3842e772_5973_9d97_587c_4794c7fe673f["MenubarCheckboxItem()"]
  ee32cbd0_cc28_99db_bd77_2dc81b265b5f["menubar.tsx"]
  3842e772_5973_9d97_587c_4794c7fe673f -->|defined in| ee32cbd0_cc28_99db_bd77_2dc81b265b5f
  style 3842e772_5973_9d97_587c_4794c7fe673f fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/registry/bases/radix/ui/menubar.tsx lines 111–145

function MenubarCheckboxItem({
  className,
  children,
  checked,
  inset,
  ...props
}: React.ComponentProps<typeof MenubarPrimitive.CheckboxItem> & {
  inset?: boolean
}) {
  return (
    <MenubarPrimitive.CheckboxItem
      data-slot="menubar-checkbox-item"
      data-inset={inset}
      className={cn(
        "cn-menubar-checkbox-item relative flex cursor-default items-center outline-hidden select-none data-disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0",
        className
      )}
      checked={checked}
      {...props}
    >
      <span className="cn-menubar-checkbox-item-indicator pointer-events-none absolute flex items-center justify-center">
        <MenubarPrimitive.ItemIndicator>
          <IconPlaceholder
            lucide="CheckIcon"
            tabler="IconCheck"
            hugeicons="Tick02Icon"
            phosphor="CheckIcon"
            remixicon="RiCheckLine"
          />
        </MenubarPrimitive.ItemIndicator>
      </span>
      {children}
    </MenubarPrimitive.CheckboxItem>
  )
}

Subdomains

Frequently Asked Questions

What does MenubarCheckboxItem() do?
MenubarCheckboxItem() is a function in the ui codebase, defined in apps/v4/registry/bases/radix/ui/menubar.tsx.
Where is MenubarCheckboxItem() defined?
MenubarCheckboxItem() is defined in apps/v4/registry/bases/radix/ui/menubar.tsx at line 111.

Analyze Your Own Codebase

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

Try Supermodel Free