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

Function MenuRadioItem

packages/web/components/ui/menu.tsx:125–157  ·  view source on GitHub ↗
({
  className,
  children,
  ...props
}: MenuPrimitive.RadioItem.Props)

Source from the content-addressed store, hash-verified

123}
124
125function MenuRadioItem({
126 className,
127 children,
128 ...props
129}: MenuPrimitive.RadioItem.Props) {
130 return (
131 <MenuPrimitive.RadioItem
132 className={cn(
133 "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",
134 className,
135 )}
136 data-slot="menu-radio-item"
137 {...props}
138 >
139 <MenuPrimitive.RadioItemIndicator className="col-start-1">
140 <svg
141 fill="none"
142 height="24"
143 stroke="currentColor"
144 strokeLinecap="round"
145 strokeLinejoin="round"
146 strokeWidth="2"
147 viewBox="0 0 24 24"
148 width="24"
149 xmlns="http://www.w3.org/2000/svg"
150 >
151 <path d="M5.252 12.7 10.2 18.63 18.748 5.37" />
152 </svg>
153 </MenuPrimitive.RadioItemIndicator>
154 <span className="col-start-2">{children}</span>
155 </MenuPrimitive.RadioItem>
156 );
157}
158
159function MenuGroupLabel({
160 className,

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected