{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "thumbs-up-icon",
  "title": "Thumbs Up Icon",
  "description": "An animated thumbs up icon.",
  "dependencies": [
    "motion"
  ],
  "files": [
    {
      "path": "registry/chamaac/animated-icons/thumbs-up-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 ThumbsUpIconProps\n  extends Omit<SVGMotionProps<SVGSVGElement>, \"strokeWidth\"> {\n  size?: number;\n  duration?: number;\n  strokeWidth?: number;\n  isHovered?: boolean;\n  repeatDelay?: number;\n  ease?: Easing;\n}\n\nconst ThumbsUpIcon = (props: ThumbsUpIconProps) => {\n  const {\n    size = 28, // Icon size in pixels\n    duration = 0.8, // Animation duration in seconds\n    strokeWidth = 2, // SVG stroke width\n    isHovered = false, // When true, animate only on hover\n    repeatDelay = 1.2, // Delay between animation loops (seconds)\n    ease = \"easeInOut\", // Animation easing function\n    className,\n    ...restProps\n  } = props;\n\n  const [isHoveredInternal, setIsHoveredInternal] = useState(false);\n\n  const shouldAnimate = isHovered ? isHoveredInternal : true;\n\n  const thumbProps = {\n    animate: shouldAnimate\n      ? {\n          rotate: [0, -15, 5, -10, 0],\n          y: [0, -2, 0],\n        }\n      : { rotate: 0, y: 0 },\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        overflow=\"visible\"\n        style={{ transformOrigin: \"center bottom\" }}\n        onMouseEnter={() => isHovered && setIsHoveredInternal(true)}\n        onMouseLeave={() => isHovered && setIsHoveredInternal(false)}\n        {...thumbProps}\n      >\n        <path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\" />\n        <path d=\"M7 11v8a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1v-7a1 1 0 0 1 1 -1h3a4 4 0 0 0 4 -4v-1a2 2 0 0 1 4 0v5h3a2 2 0 0 1 2 2l-1 5a2 3 0 0 1 -2 2h-7a3 3 0 0 1 -3 -3\" />\n      </m.svg>\n    </LazyMotion>\n  );\n};\n\nexport default ThumbsUpIcon;\n",
      "type": "registry:component"
    }
  ],
  "type": "registry:component"
}