{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "sliders-horizontal",
  "type": "registry:ui",
  "registryDependencies": [],
  "dependencies": ["motion"],
  "devDependencies": [],
  "files": [
    {
      "path": "sliders-horizontal.tsx",
      "content": "\"use client\";\n\nimport type { Transition } from \"motion/react\";\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 SlidersHorizontalIconHandle {\n  startAnimation: () => void;\n  stopAnimation: () => void;\n}\n\ninterface SlidersHorizontalIconProps extends HTMLAttributes<HTMLDivElement> {\n  size?: number;\n}\n\nconst DEFAULT_TRANSITION: Transition = {\n  type: \"spring\",\n  stiffness: 100,\n  damping: 12,\n  mass: 0.4,\n};\n\nconst SlidersHorizontalIcon = forwardRef<\n  SlidersHorizontalIconHandle,\n  SlidersHorizontalIconProps\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\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) {\n        onMouseEnter?.(e);\n      } else {\n        controls.start(\"animate\");\n      }\n    },\n    [controls, onMouseEnter]\n  );\n\n  const handleMouseLeave = useCallback(\n    (e: React.MouseEvent<HTMLDivElement>) => {\n      if (isControlledRef.current) {\n        onMouseLeave?.(e);\n      } else {\n        controls.start(\"normal\");\n      }\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        <motion.line\n          animate={controls}\n          initial={false}\n          transition={DEFAULT_TRANSITION}\n          variants={{\n            normal: {\n              x2: 14,\n            },\n            animate: {\n              x2: 10,\n            },\n          }}\n          x1=\"21\"\n          x2=\"14\"\n          y1=\"4\"\n          y2=\"4\"\n        />\n        <motion.line\n          animate={controls}\n          transition={DEFAULT_TRANSITION}\n          variants={{\n            normal: {\n              x1: 10,\n            },\n            animate: {\n              x1: 5,\n            },\n          }}\n          x1=\"10\"\n          x2=\"3\"\n          y1=\"4\"\n          y2=\"4\"\n        />\n\n        <motion.line\n          animate={controls}\n          transition={DEFAULT_TRANSITION}\n          variants={{\n            normal: {\n              x2: 12,\n            },\n            animate: {\n              x2: 18,\n            },\n          }}\n          x1=\"21\"\n          x2=\"12\"\n          y1=\"12\"\n          y2=\"12\"\n        />\n\n        <motion.line\n          animate={controls}\n          transition={DEFAULT_TRANSITION}\n          variants={{\n            normal: {\n              x1: 8,\n            },\n            animate: {\n              x1: 13,\n            },\n          }}\n          x1=\"8\"\n          x2=\"3\"\n          y1=\"12\"\n          y2=\"12\"\n        />\n\n        <motion.line\n          animate={controls}\n          transition={DEFAULT_TRANSITION}\n          variants={{\n            normal: {\n              x2: 12,\n            },\n            animate: {\n              x2: 4,\n            },\n          }}\n          x1=\"3\"\n          x2=\"12\"\n          y1=\"20\"\n          y2=\"20\"\n        />\n\n        <motion.line\n          animate={controls}\n          transition={DEFAULT_TRANSITION}\n          variants={{\n            normal: {\n              x1: 16,\n            },\n            animate: {\n              x1: 8,\n            },\n          }}\n          x1=\"16\"\n          x2=\"21\"\n          y1=\"20\"\n          y2=\"20\"\n        />\n\n        <motion.line\n          animate={controls}\n          transition={DEFAULT_TRANSITION}\n          variants={{\n            normal: {\n              x1: 14,\n              x2: 14,\n            },\n            animate: {\n              x1: 9,\n              x2: 9,\n            },\n          }}\n          x1=\"14\"\n          x2=\"14\"\n          y1=\"2\"\n          y2=\"6\"\n        />\n\n        <motion.line\n          animate={controls}\n          transition={DEFAULT_TRANSITION}\n          variants={{\n            normal: {\n              x1: 8,\n              x2: 8,\n            },\n            animate: {\n              x1: 14,\n              x2: 14,\n            },\n          }}\n          x1=\"8\"\n          x2=\"8\"\n          y1=\"10\"\n          y2=\"14\"\n        />\n\n        <motion.line\n          animate={controls}\n          transition={DEFAULT_TRANSITION}\n          variants={{\n            normal: {\n              x1: 16,\n              x2: 16,\n            },\n            animate: {\n              x1: 8,\n              x2: 8,\n            },\n          }}\n          x1=\"16\"\n          x2=\"16\"\n          y1=\"18\"\n          y2=\"22\"\n        />\n      </svg>\n    </div>\n  );\n});\n\nSlidersHorizontalIcon.displayName = \"SlidersHorizontalIcon\";\n\nexport { SlidersHorizontalIcon };\n",
      "type": "registry:ui"
    }
  ]
}
