{
  "name": "circle-spinner-wipe-default",
  "type": "registry:ui",
  "tier": "free",
  "dependencies": [
    "framer-motion"
  ],
  "registryDependencies": [
    "https://www.craftui.space/r/craftui-base.json"
  ],
  "files": [
    {
      "path": "components/craftui/loaders/circle-spinner-wipe/default.tsx",
      "content": "'use client';\n\nimport { useEffect } from 'react';\nimport { motion, useAnimation } from 'motion/react';\n\ninterface CircleSpinnerWipeProps {\n  width?: number;\n  height?: number;\n  color?: string;\n  backgroundColor?: string;\n  thickness?: number;\n  isAnimating?: boolean;\n  duration?: number;\n  ease?: any;\n  strokeLinecap?: 'round' | 'butt' | 'square';\n}\n\nexport function CircleSpinnerWipe({\n  width = 60,\n  height = 60,\n  color = \"currentColor\",\n  backgroundColor = \"#dddddd\",\n  thickness = 10,\n  isAnimating = true,\n  duration = 2.0,\n  ease = 'linear',\n  strokeLinecap = 'butt',\n}: CircleSpinnerWipeProps) {\n  const centerX = width / 2;\n  const centerY = height / 2;\n  const radius = Math.min(width, height) / 2 - thickness / 2;\n  const circumference = 2 * Math.PI * radius;\n\n  const controls = useAnimation();\n\n  useEffect(() => {\n    if (isAnimating) {\n      controls.start({\n        strokeDashoffset: [circumference, 0],\n        transition: { duration, repeat: Infinity, ease },\n      });\n    } else {\n      controls.stop();\n      controls.set({ strokeDashoffset: circumference });\n    }\n  }, [isAnimating, duration, ease, circumference, controls]);\n\n  return (\n    <svg\n      width={width}\n      height={height}\n      viewBox={`0 0 ${width} ${height}`}\n      fill=\"none\"\n      xmlns=\"http://www.w3.org/2000/svg\"\n      aria-label=\"Loading\"\n      role=\"img\"\n    >\n      {/* Background track circle */}\n      <circle\n        cx={centerX}\n        cy={centerY}\n        r={radius}\n        stroke={backgroundColor}\n        strokeWidth={thickness}\n        fill=\"none\"\n      />\n      {/* Animated wipe circle - starts from top (rotated -90deg) */}\n      <motion.circle\n        cx={centerX}\n        cy={centerY}\n        r={radius}\n        stroke={color}\n        strokeWidth={thickness}\n        fill=\"none\"\n        strokeLinecap={strokeLinecap}\n        strokeDasharray={circumference}\n        initial={{ strokeDashoffset: circumference }}\n        animate={controls}\n        style={{ transformOrigin: `${centerX}px ${centerY}px`, rotate: -90 }}\n      />\n    </svg>\n  );\n}\n",
      "type": "registry:ui",
      "target": "~/components/craftui/loaders/circle-spinner-wipe/default.tsx"
    }
  ],
  "meta": {
    "displayName": "Circle Spinner Wipe - Circle Spinner Wipe",
    "description": "Two concentric rings where the foreground ring wipes clockwise from 0% to 100% over the background track",
    "category": "loaders",
    "tags": [
      "spinner",
      "circle",
      "wipe",
      "rotate",
      "simple",
      "smooth",
      "progress",
      "ring"
    ],
    "animationType": "loop"
  }
}