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
  d669448f_6366_cd20_aa6e_0003bd73a905["MenubarCheckboxItem()"]
  feb74425_d8ed_04d0_82fe_8b48becd0017["menubar.tsx"]
  d669448f_6366_cd20_aa6e_0003bd73a905 -->|defined in| feb74425_d8ed_04d0_82fe_8b48becd0017
  style d669448f_6366_cd20_aa6e_0003bd73a905 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/registry/new-york-v4/ui/menubar.tsx lines 114–138

function MenubarCheckboxItem({
  className,
  children,
  checked,
  ...props
}: React.ComponentProps<typeof MenubarPrimitive.CheckboxItem>) {
  return (
    <MenubarPrimitive.CheckboxItem
      data-slot="menubar-checkbox-item"
      className={cn(
        "focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-xs 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">
        <MenubarPrimitive.ItemIndicator>
          <CheckIcon className="size-4" />
        </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/new-york-v4/ui/menubar.tsx.
Where is MenubarCheckboxItem() defined?
MenubarCheckboxItem() is defined in apps/v4/registry/new-york-v4/ui/menubar.tsx at line 114.

Analyze Your Own Codebase

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

Try Supermodel Free