{
  "name": "bars-fill-sequential-default",
  "type": "registry:ui",
  "tier": "free",
  "dependencies": [
    "framer-motion"
  ],
  "registryDependencies": [
    "https://www.craftui.space/r/craftui-base.json"
  ],
  "files": [
    {
      "path": "components/craftui/loaders/bars-fill-sequential/default.tsx",
      "content": "'use client';\n\nimport { useEffect } from 'react';\nimport { motion, useAnimation } from 'motion/react';\n\ninterface BarsFillSequentialProps {\n  width?: number;\n  height?: number;\n  color?: string;\n  barWidth?: number;\n  gap?: number;\n  isAnimating?: boolean;\n  duration?: number;\n  ease?: any;\n  repeatDelay?: number;\n}\n\nexport function BarsFillSequential({\n  width = 45,\n  height = 45,\n  color = \"currentColor\",\n  barWidth = 9,\n  gap = 9,\n  isAnimating = true,\n  duration = 0.5,\n  ease = [0.215, 0.61, 0.355, 1],\n  repeatDelay = 0.5,\n}: BarsFillSequentialProps) {\n  const bars = [\n    { x: 0, delay: 0 },\n    { x: barWidth + gap, delay: 0.17 },\n    { x: (barWidth + gap) * 2, delay: 0.33 }\n  ];\n\n  const controls = useAnimation();\n\n  useEffect(() => {\n    if (isAnimating) {\n      controls.start((i) => ({\n        y: [height, 0],\n        transition: { duration, delay: bars[i].delay, repeat: Infinity, repeatDelay, ease },\n      }));\n    } else {\n      controls.stop();\n      controls.set({ y: height });\n    }\n  }, [isAnimating, duration, ease, repeatDelay, height, 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    >\n      {bars.map((bar, index) => {\n        return (\n          <motion.rect\n            key={index}\n            x={bar.x}\n            width={barWidth}\n            height={height}\n            fill={color}\n            custom={index}\n            initial={{ y: height }}\n            animate={controls}\n          />\n        );\n      })}\n    </svg>\n  );\n}\n",
      "type": "registry:ui",
      "target": "~/components/craftui/loaders/bars-fill-sequential/default.tsx"
    }
  ],
  "meta": {
    "displayName": "Bars Fill Sequential - Bars Fill Sequential",
    "description": "Three bars that rise from bottom to top in sequence, creating a wave effect",
    "category": "loaders",
    "tags": [
      "bars",
      "loading",
      "fill",
      "sequential",
      "vertical",
      "rise"
    ],
    "animationType": "loop"
  }
}