{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "dots-loader",
  "title": "Dots Loader",
  "author": "VenusUI",
  "description": "Three dots that rise and fall in turn, for typing or inline loading states.",
  "files": [
    {
      "path": "registry/default/ui/dots-loader.tsx",
      "content": "import * as React from \"react\"\n\nimport { cn } from \"@/lib/utils\"\n\ninterface DotsLoaderProps extends Omit<React.ComponentProps<\"span\">, \"children\"> {\n  /** Announced to screen readers. */\n  label?: string\n}\n\n/**\n * Three dots that rise and fall in turn, e.g. for \"typing…\" or inline\n * loading. Dots inherit the text color and scale with the font size.\n * With reduced motion they fade instead of moving.\n */\nfunction DotsLoader({ label = \"Loading\", className, ...props }: DotsLoaderProps) {\n  return (\n    <span role=\"status\" data-slot=\"dots-loader\" className={cn(\"inline-flex items-center gap-[0.25em]\", className)} {...props}>\n      {[0, 1, 2].map((index) => (\n        <span\n          key={index}\n          aria-hidden=\"true\"\n          className=\"size-[0.4em] animate-dots-loader rounded-full bg-current motion-reduce:animate-pulse\"\n          style={{ animationDelay: `${index * 0.15}s` }}\n        />\n      ))}\n      <span className=\"sr-only\">{label}</span>\n    </span>\n  )\n}\n\nexport { DotsLoader, type DotsLoaderProps }\n",
      "type": "registry:ui"
    }
  ],
  "cssVars": {
    "theme": {
      "animate-dots-loader": "dots-loader 1.2s ease-in-out infinite"
    }
  },
  "css": {
    "@keyframes dots-loader": {
      "0%, 80%, 100%": {
        "transform": "translateY(0)",
        "opacity": "0.4"
      },
      "40%": {
        "transform": "translateY(-0.35em)",
        "opacity": "1"
      }
    }
  },
  "meta": {
    "version": "0.1.0"
  },
  "categories": [
    "loaders",
    "animations"
  ],
  "type": "registry:ui"
}