{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "menu", "type": "registry:ui", "dependencies": ["@ark-ui/react", "lucide-react"], "files": [ { "path": "./src/components/ui/menu.tsx", "content": "\"use client\"\n\nimport * as React from \"react\"\n\nimport { type HTMLArkProps, ark } from \"@ark-ui/react/factory\"\nimport { Menu as MenuPrimitive, menuAnatomy } from \"@ark-ui/react/menu\"\nimport { CheckIcon, ChevronRightIcon, CircleIcon } from \"lucide-react\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst parts = menuAnatomy.extendWith(\"shortcut\").build()\n\nconst Menu = MenuPrimitive.Root\n\nconst MenuArrow = React.forwardRef<\n React.ElementRef,\n MenuPrimitive.ArrowProps\n>(({ className, ...props }, ref) => (\n \n \n \n))\nMenuArrow.displayName = \"MenuArrow\"\n\nconst MenuCheckboxItem = React.forwardRef<\n React.ElementRef,\n MenuPrimitive.CheckboxItemProps\n>(({ className, children, ...props }, ref) => (\n \n \n \n \n \n \n {children}\n \n))\nMenuCheckboxItem.displayName = \"MenuCheckboxItem\"\n\nconst MenuContent = React.forwardRef<\n React.ElementRef,\n MenuPrimitive.ContentProps\n>(({ className, ...props }, ref) => (\n \n \n \n))\nMenuContent.displayName = \"MenuContent\"\n\nconst MenuContextTrigger = MenuPrimitive.ContextTrigger\n\nconst MenuIndicator = MenuPrimitive.Indicator\n\nconst MenuItem = React.forwardRef<\n React.ElementRef,\n MenuPrimitive.ItemProps & {\n inset?: boolean\n }\n>(({ className, inset, ...props }, ref) => (\n \n))\nMenuItem.displayName = \"MenuItem\"\n\nconst MenuItemGroup = MenuPrimitive.ItemGroup\n\nconst MenuItemGroupLabel = React.forwardRef<\n React.ElementRef,\n MenuPrimitive.ItemGroupLabelProps & {\n inset?: boolean\n }\n>(({ className, inset, ...props }, ref) => (\n \n))\nMenuItemGroupLabel.displayName = \"MenuItemGroupLabel\"\n\nconst MenuItemText = MenuPrimitive.ItemText\n\nconst MenuRadioItem = React.forwardRef<\n React.ElementRef,\n MenuPrimitive.RadioItemProps\n>(({ className, children, ...props }, ref) => (\n \n \n \n \n \n \n {children}\n \n))\nMenuRadioItem.displayName = \"MenuRadioItem\"\n\nconst MenuRadioItemGroup = MenuPrimitive.RadioItemGroup\n\nconst MenuSeparator = React.forwardRef<\n React.ElementRef,\n MenuPrimitive.SeparatorProps\n>(({ className, ...props }, ref) => (\n \n))\nMenuSeparator.displayName = \"MenuSeparator\"\n\nconst MenuShortcut = React.forwardRef>(\n ({ className, ...props }, ref) => {\n return (\n \n )\n }\n)\nMenuShortcut.displayName = \"MenuShortcut\"\n\nconst MenuTrigger = MenuPrimitive.Trigger\n\nconst MenuTriggerItem = React.forwardRef<\n React.ElementRef,\n MenuPrimitive.TriggerItemProps & {\n inset?: boolean\n }\n>(({ className, inset, children, ...props }, ref) => (\n \n {children}\n \n \n))\nMenuTriggerItem.displayName = \"MenuTriggerItem\"\n\nexport {\n Menu,\n MenuArrow,\n MenuCheckboxItem,\n MenuContent,\n MenuContextTrigger,\n MenuIndicator,\n MenuItem,\n MenuItemGroup,\n MenuItemGroupLabel,\n MenuItemText,\n MenuRadioItem,\n MenuRadioItemGroup,\n MenuSeparator,\n MenuShortcut,\n MenuTrigger,\n MenuTriggerItem,\n}\n", "type": "registry:ui" } ] }