{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "waves-ladder",
  "type": "registry:ui",
  "registryDependencies": [],
  "dependencies": ["motion"],
  "devDependencies": [],
  "files": [
    {
      "path": "waves-ladder.tsx",
      "content": "\"use client\";\n\nimport { motion, useAnimation } from \"motion/react\";\nimport type { HTMLAttributes } from \"react\";\nimport { forwardRef, useCallback, useImperativeHandle, useRef } from \"react\";\n\nimport { cn } from \"@/lib/utils\";\n\nexport interface WavesLadderIconHandle {\n  startAnimation: () => void;\n  stopAnimation: () => void;\n}\n\ninterface WavesLadderIconProps extends HTMLAttributes<HTMLDivElement> {\n  size?: number;\n}\n\nconst WavesLadderIcon = forwardRef<WavesLadderIconHandle, WavesLadderIconProps>(\n  ({ onMouseEnter, onMouseLeave, className, size = 28, ...props }, ref) => {\n    const controls = useAnimation();\n    const isControlledRef = useRef(false);\n\n    useImperativeHandle(ref, () => {\n      isControlledRef.current = true;\n      return {\n        startAnimation: () => controls.start(\"animate\"),\n        stopAnimation: () => controls.start(\"normal\"),\n      };\n    });\n\n    const handleMouseEnter = useCallback(\n      (e: React.MouseEvent<HTMLDivElement>) => {\n        if (!isControlledRef.current) controls.start(\"animate\");\n        onMouseEnter?.(e);\n      },\n      [controls, onMouseEnter]\n    );\n\n    const handleMouseLeave = useCallback(\n      (e: React.MouseEvent<HTMLDivElement>) => {\n        if (!isControlledRef.current) controls.start(\"normal\");\n        onMouseLeave?.(e);\n      },\n      [controls, onMouseLeave]\n    );\n\n    return (\n      <div\n        className={cn(className)}\n        onMouseEnter={handleMouseEnter}\n        onMouseLeave={handleMouseLeave}\n        {...props}\n      >\n        <svg\n          fill=\"none\"\n          height={size}\n          stroke=\"currentColor\"\n          strokeLinecap=\"round\"\n          strokeLinejoin=\"round\"\n          strokeWidth=\"2\"\n          viewBox=\"0 0 24 24\"\n          width={size}\n          xmlns=\"http://www.w3.org/2000/svg\"\n        >\n          <path d=\"M2 18c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1\" />\n          <motion.g\n            animate={controls}\n            initial={{ y: 0, opacity: 1 }}\n            variants={{\n              normal: { y: 0, opacity: 1 },\n              animate: {\n                y: [13, 0],\n                opacity: [0, 0, 1],\n                transition: { duration: 1, times: [0, 0.5, 1], repeat: 0 },\n              },\n            }}\n          >\n            <path d=\"M19 5a2 2 0 0 0-2 2v11\" />\n            <path d=\"M7 13h10\" />\n            <path d=\"M7 9h10\" />\n            <path d=\"M9 5a2 2 0 0 0-2 2v11\" />\n          </motion.g>\n        </svg>\n      </div>\n    );\n  }\n);\n\nWavesLadderIcon.displayName = \"WavesLadderIcon\";\n\nexport { WavesLadderIcon };\n",
      "type": "registry:ui"
    }
  ]
}
