{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "download-icon",
  "title": "Download Icon",
  "description": "An animated download icon with a bouncing arrow.",
  "dependencies": [
    "motion"
  ],
  "files": [
    {
      "path": "registry/chamaac/animated-icons/download-icon.tsx",
      "content": "\"use client\";\n\nimport { useState } from \"react\";\nimport { m, LazyMotion, domAnimation, SVGMotionProps } from \"motion/react\";\n\ninterface DownloadIconProps extends SVGMotionProps<SVGSVGElement> {\n  size?: number;\n  duration?: number;\n  strokeWidth?: number;\n  isHovered?: boolean;\n}\n\nconst DownloadIcon = (props: DownloadIconProps) => {\n  const {\n    size = 28,\n    duration = 1,\n    strokeWidth = 2,\n    isHovered = false,\n    className,\n    ...restProps\n  } = props;\n  const [isHoveredInternal, setIsHoveredInternal] = useState(false);\n\n  const shouldAnimate = isHovered ? isHoveredInternal : true;\n\n  const groupAnimationProps = {\n    animate: shouldAnimate\n      ? {\n          y: [0, 3, 0],\n        }\n      : { y: 0 },\n    transition: {\n      duration: duration,\n      ease: \"easeInOut\" as const,\n      repeat: isHovered ? 0 : Infinity,\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        <path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\" />\n        <path d=\"M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-2\" />\n        <m.g {...groupAnimationProps}>\n          <path d=\"M7 10l5 5l5 -5\" />\n          <path d=\"M12 3l0 12\" />\n        </m.g>\n      </m.svg>\n    </LazyMotion>\n  );\n};\n\nexport default DownloadIcon;\n",
      "type": "registry:component"
    }
  ],
  "type": "registry:component"
}