MenubarCheckboxItem() — ui Function Reference
Architecture documentation for the MenubarCheckboxItem() function in menubar.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 6070064c_9e2b_a60a_ea5e_a9c8f8678364["MenubarCheckboxItem()"] b88c6686_7952_f3d1_073d_cdb429cd7d48["menubar.tsx"] 6070064c_9e2b_a60a_ea5e_a9c8f8678364 -->|defined in| b88c6686_7952_f3d1_073d_cdb429cd7d48 style 6070064c_9e2b_a60a_ea5e_a9c8f8678364 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/examples/base/ui/menubar.tsx lines 111–139
function MenubarCheckboxItem({
className,
children,
checked,
inset,
...props
}: MenuPrimitive.CheckboxItem.Props & {
inset?: boolean
}) {
return (
<MenuPrimitive.CheckboxItem
data-slot="menubar-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-1.5 pl-7 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",
className
)}
checked={checked}
{...props}
>
<span className="pointer-events-none absolute left-1.5 flex size-4 items-center justify-center [&_svg:not([class*='size-'])]:size-4">
<MenuPrimitive.CheckboxItemIndicator>
<CheckIcon />
</MenuPrimitive.CheckboxItemIndicator>
</span>
{children}
</MenuPrimitive.CheckboxItem>
)
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does MenubarCheckboxItem() do?
MenubarCheckboxItem() is a function in the ui codebase, defined in apps/v4/examples/base/ui/menubar.tsx.
Where is MenubarCheckboxItem() defined?
MenubarCheckboxItem() is defined in apps/v4/examples/base/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