{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "check-icon",
  "title": "Check Icon",
  "description": "An animated check icon with drawing circle and checkmark.",
  "dependencies": [
    "motion"
  ],
  "files": [
    {
      "path": "registry/chamaac/animated-icons/check-icon.tsx",
      "content": "\"use client\";\n\nimport { useState } from \"react\";\nimport { m, LazyMotion, domAnimation, SVGMotionProps } from \"motion/react\";\n\ninterface CheckIconProps\n  extends Omit<SVGMotionProps<SVGSVGElement>, \"strokeWidth\"> {\n  size?: number;\n  duration?: number;\n  strokeWidth?: number;\n  isHovered?: boolean;\n}\n\nconst CheckIcon = (props: CheckIconProps) => {\n  const {\n    size = 28,\n    duration = 2.5,\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 pathAnimationProps = {\n    animate: shouldAnimate\n      ? { pathLength: [0, 1, 1, 0], opacity: 1 }\n      : { pathLength: 1, opacity: 1 },\n    transition: {\n      duration: duration,\n      ease: \"easeInOut\" as const,\n      repeat: isHovered ? 0 : Infinity,\n      times: [0, 0.4, 0.8, 1],\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        <circle cx=\"12\" cy=\"12\" r=\"9\" fill=\"none\" />\n        <m.path d=\"M9 12l2 2l4 -4\" {...pathAnimationProps} />\n      </m.svg>\n    </LazyMotion>\n  );\n};\n\nexport default CheckIcon;\n",
      "type": "registry:component"
    }
  ],
  "type": "registry:component"
}