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

Function MenuSubTrigger

packages/web/components/ui/menu.tsx:206–231  ·  view source on GitHub ↗
({
  className,
  inset,
  children,
  ...props
}: MenuPrimitive.SubmenuTrigger.Props & {
  inset?: boolean;
})

Source from the content-addressed store, hash-verified

204}
205
206function MenuSubTrigger({
207 className,
208 inset,
209 children,
210 ...props
211}: MenuPrimitive.SubmenuTrigger.Props & {
212 inset?: boolean;
213}) {
214 return (
215 <MenuPrimitive.SubmenuTrigger
216 className={cn(
217 "flex min-h-8 items-center gap-2 rounded-sm px-2 py-1 text-base outline-none data-disabled:pointer-events-none data-highlighted:bg-accent data-popup-open:bg-accent data-inset:ps-8 data-highlighted:text-accent-foreground data-popup-open: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",
218 className,
219 )}
220 data-inset={inset}
221 data-slot="menu-sub-trigger"
222 {...props}
223 >
224 {children}
225 <HugeiconsIcon
226 className="-me-0.5 ms-auto opacity-80"
227 icon={ArrowRight01Icon}
228 />
229 </MenuPrimitive.SubmenuTrigger>
230 );
231}
232
233function MenuSubPopup({
234 className,

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected