{
  "name": "app-download-default",
  "type": "registry:ui",
  "tier": "free",
  "dependencies": [
    "framer-motion"
  ],
  "registryDependencies": [
    "https://www.craftui.space/r/craftui-base.json"
  ],
  "files": [
    {
      "path": "components/craftui/loaders/app-download/default.tsx",
      "content": "'use client';\n\nimport { useEffect } from 'react';\nimport { motion, useAnimation } from 'motion/react';\n\ninterface AppDownloadProps {\n  width?: number;\n  height?: number;\n  color?: string;\n  trackOpacity?: number;\n  isAnimating?: boolean;\n  duration?: number;\n  ease?: any;\n  strokeWidth?: number;\n  strokeLinecap?: 'round' | 'butt' | 'square';\n  repeatDelay?: number;\n}\n\nexport function AppDownload({\n  width = 100,\n  height = 100,\n  color = 'currentColor',\n  trackOpacity = 0.12,\n  isAnimating = true,\n  duration = 1.5,\n  ease = 'easeInOut',\n  strokeWidth = 5,\n  strokeLinecap = 'round',\n  repeatDelay = 0.4,\n}: AppDownloadProps) {\n  const r = 38;\n  const circumference = 2 * Math.PI * r;\n\n  const controls = useAnimation();\n\n  useEffect(() => {\n    if (isAnimating) {\n      controls.start({\n        strokeDashoffset: [circumference, 0],\n        transition: { duration, repeat: Infinity, ease, repeatDelay },\n      });\n    } else {\n      controls.stop();\n      controls.set({ strokeDashoffset: circumference });\n    }\n  }, [isAnimating, duration, ease, repeatDelay, circumference, controls]);\n\n  return (\n    <svg\n      width={width}\n      height={height}\n      viewBox=\"0 0 100 100\"\n      fill=\"none\"\n      xmlns=\"http://www.w3.org/2000/svg\"\n      aria-label=\"Loading\"\n      role=\"img\"\n    >\n      {/* Faint background track */}\n      <circle\n        cx={50}\n        cy={50}\n        r={r}\n        stroke={color}\n        strokeWidth={strokeWidth}\n        fill=\"none\"\n        opacity={trackOpacity}\n      />\n\n      {/* Arc draws itself from 12 o'clock clockwise */}\n      <motion.circle\n        cx={50}\n        cy={50}\n        r={r}\n        stroke={color}\n        strokeWidth={strokeWidth}\n        strokeLinecap={strokeLinecap}\n        fill=\"none\"\n        transform=\"rotate(-90, 50, 50)\"\n        strokeDasharray={circumference}\n        initial={{ strokeDashoffset: circumference }}\n        animate={controls}\n      />\n    </svg>\n  );\n}\n",
      "type": "registry:ui",
      "target": "~/components/craftui/loaders/app-download/default.tsx"
    }
  ],
  "meta": {
    "displayName": "App Download - App Download",
    "description": "A rounded arc sweeps around a faint track using strokeDashoffset animation, with a brief pause between each full rotation",
    "category": "loaders",
    "tags": [
      "apple",
      "download",
      "arc",
      "progress",
      "stroke",
      "appstore"
    ],
    "animationType": "loop"
  }
}