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

Function MenuItem

packages/web/components/ui/menu.tsx:62–83  ·  view source on GitHub ↗
({
  className,
  inset,
  variant = "default",
  ...props
}: MenuPrimitive.Item.Props & {
  inset?: boolean;
  variant?: "default" | "destructive";
})

Source from the content-addressed store, hash-verified

60}
61
62function MenuItem({
63 className,
64 inset,
65 variant = "default",
66 ...props
67}: MenuPrimitive.Item.Props & {
68 inset?: boolean;
69 variant?: "default" | "destructive";
70}) {
71 return (
72 <MenuPrimitive.Item
73 className={cn(
74 "[&_svg]:-mx-0.5 flex min-h-8 cursor-default select-none items-center gap-2 rounded-sm px-2 py-1 text-base outline-none data-disabled:pointer-events-none data-highlighted:bg-accent data-inset:ps-8 data-[variant=destructive]:text-destructive-foreground data-highlighted:text-accent-foreground data-disabled:opacity-64 sm:min-h-7 sm:text-sm [&_svg:not([class*='opacity-'])]:opacity-80 [&_svg:not([class*='size-'])]:size-4.5 sm:[&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",
75 className,
76 )}
77 data-inset={inset}
78 data-slot="menu-item"
79 data-variant={variant}
80 {...props}
81 />
82 );
83}
84
85function MenuCheckboxItem({
86 className,

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected