{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "bars",
  "files": [
    {
      "path": "registry/components/loading-ui/bars.tsx",
      "content": "import { cn } from \"@/lib/utils\";\n\nfunction Bars({\n  className,\n  bars = 3,\n  ...props\n}: React.ComponentProps<\"span\"> & { bars?: number }) {\n  return (\n    <>\n      <style>{`\n        @keyframes loading-ui-wave-bars {\n          0%,\n          100% {\n            transform: scaleY(1);\n            opacity: 0.5;\n          }\n\n          50% {\n            transform: scaleY(0.6);\n            opacity: 1;\n          }\n        }\n      `}</style>\n      <span\n        role=\"status\"\n        className={cn(\"inline-flex items-stretch gap-[5%]\", className)}\n        {...props}\n      >\n        {Array.from({ length: bars }, (_, index) => (\n          <span\n            key={index}\n            aria-hidden=\"true\"\n            className=\"inline-block h-full rounded-[1px] bg-current\"\n            style={{\n              width: `${100 / bars}%`,\n              animation:\n                \"loading-ui-wave-bars var(--duration, 1.2s) ease-in-out infinite\",\n              animationDelay: `calc(var(--delay, 0.2s) * ${index})`,\n            }}\n          />\n        ))}\n        <span className=\"sr-only\">Loading</span>\n      </span>\n    </>\n  );\n}\n\nexport { Bars };\n",
      "type": "registry:component",
      "target": ""
    }
  ],
  "type": "registry:component"
}
