MCPcopy Create free account
hub / github.com/arctic-cli/interface / MenuCheckboxItem

Function MenuCheckboxItem

packages/web/components/ui/menu.tsx:85–119  ·  view source on GitHub ↗
({
  className,
  children,
  checked,
  ...props
}: MenuPrimitive.CheckboxItem.Props)

Source from the content-addressed store, hash-verified

83}
84
85function MenuCheckboxItem({
86 className,
87 children,
88 checked,
89 ...props
90}: MenuPrimitive.CheckboxItem.Props) {
91 return (
92 <MenuPrimitive.CheckboxItem
93 checked={checked}
94 className={cn(
95 "grid min-h-8 in-data-[side=none]:min-w-[calc(var(--anchor-width)+1.25rem)] cursor-default grid-cols-[1rem_1fr] items-center gap-2 rounded-sm py-1 ps-2 pe-4 text-base outline-none data-disabled:pointer-events-none data-highlighted:bg-accent data-highlighted:text-accent-foreground data-disabled:opacity-64 sm:min-h-7 sm:text-sm [&_svg:not([class*='size-'])]:size-4.5 sm:[&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",
96 className,
97 )}
98 data-slot="menu-checkbox-item"
99 {...props}
100 >
101 <MenuPrimitive.CheckboxItemIndicator className="col-start-1">
102 <svg
103 fill="none"
104 height="24"
105 stroke="currentColor"
106 strokeLinecap="round"
107 strokeLinejoin="round"
108 strokeWidth="2"
109 viewBox="0 0 24 24"
110 width="24"
111 xmlns="http://www.w3.org/2000/svg"
112 >
113 <path d="M5.252 12.7 10.2 18.63 18.748 5.37" />
114 </svg>
115 </MenuPrimitive.CheckboxItemIndicator>
116 <span className="col-start-2">{children}</span>
117 </MenuPrimitive.CheckboxItem>
118 );
119}
120
121function MenuRadioGroup(props: MenuPrimitive.RadioGroup.Props) {
122 return <MenuPrimitive.RadioGroup data-slot="menu-radio-group" {...props} />;

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected