{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "menu-icon",
  "title": "Menu Icon",
  "description": "An animated menu icon.",
  "dependencies": [
    "motion"
  ],
  "files": [
    {
      "path": "registry/chamaac/animated-icons/menu-icon.tsx",
      "content": "\"use client\";\n\nimport { useState } from \"react\";\nimport {\n  m,\n  LazyMotion,\n  domAnimation,\n  SVGMotionProps,\n  Easing,\n} from \"motion/react\";\n\ninterface IconProps extends SVGMotionProps<SVGSVGElement> {\n  size?: number;\n  duration?: number;\n  strokeWidth?: number;\n  isHovered?: boolean;\n  repeatDelay?: number;\n  ease?: Easing;\n}\n\nconst MenuIcon = (props: IconProps) => {\n  const {\n    size = 28,\n    duration = 1.5,\n    strokeWidth = 2,\n    isHovered = false,\n    repeatDelay = 1,\n    ease = \"easeInOut\",\n    className,\n    ...restProps\n  } = props;\n\n  const [isHoveredInternal, setIsHoveredInternal] = useState(false);\n  const shouldAnimate = isHovered ? isHoveredInternal : true;\n\n  const lineProps = {\n    transition: {\n      duration: duration,\n      ease: ease,\n      repeat: isHovered ? 0 : Infinity,\n      repeatDelay: repeatDelay,\n    },\n  };\n\n  return (\n    <LazyMotion features={domAnimation}>\n      <m.svg\n        {...restProps}\n        xmlns=\"http://www.w3.org/2000/svg\"\n        width={size}\n        height={size}\n        viewBox=\"0 0 24 24\"\n        fill=\"none\"\n        stroke=\"currentColor\"\n        strokeWidth={strokeWidth}\n        strokeLinecap=\"round\"\n        strokeLinejoin=\"round\"\n        className={className}\n        onMouseEnter={() => isHovered && setIsHoveredInternal(true)}\n        onMouseLeave={() => isHovered && setIsHoveredInternal(false)}\n      >\n        <m.line\n          x1=\"4\"\n          x2=\"20\"\n          y1=\"12\"\n          y2=\"12\"\n          animate={shouldAnimate ? { opacity: [1, 0, 0, 1] } : { opacity: 1 }}\n          {...lineProps}\n        />\n        <m.line\n          x1=\"4\"\n          x2=\"20\"\n          y1=\"6\"\n          y2=\"6\"\n          animate={\n            shouldAnimate\n              ? { y: [0, 6, 6, 0], rotate: [0, 45, 45, 0] }\n              : { y: 0, rotate: 0 }\n          }\n          style={{ originX: \"50%\", originY: \"50%\" }}\n          {...lineProps}\n        />\n        <m.line\n          x1=\"4\"\n          x2=\"20\"\n          y1=\"18\"\n          y2=\"18\"\n          animate={\n            shouldAnimate\n              ? { y: [0, -6, -6, 0], rotate: [0, -45, -45, 0] }\n              : { y: 0, rotate: 0 }\n          }\n          style={{ originX: \"50%\", originY: \"50%\" }}\n          {...lineProps}\n        />\n      </m.svg>\n    </LazyMotion>\n  );\n};\n\nexport default MenuIcon;\n",
      "type": "registry:component"
    }
  ],
  "type": "registry:component"
}