{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "bar-loader",
  "title": "Bar Loader",
  "author": "VenusUI",
  "description": "A thin indeterminate progress bar for pages and cards that are loading.",
  "files": [
    {
      "path": "registry/default/ui/bar-loader.tsx",
      "content": "import * as React from \"react\"\n\nimport { cn } from \"@/lib/utils\"\n\ninterface BarLoaderProps extends Omit<React.ComponentProps<\"div\">, \"children\"> {\n  /** Accessible name, e.g. \"Loading results\". */\n  label?: string\n}\n\n/**\n * A thin indeterminate progress bar, e.g. at the top of a page or card while\n * something loads. Exposed as a progressbar without a value. With reduced\n * motion the bar pulses in place instead of sliding.\n */\nfunction BarLoader({ label = \"Loading\", className, ...props }: BarLoaderProps) {\n  return (\n    <div\n      role=\"progressbar\"\n      aria-label={label}\n      data-slot=\"bar-loader\"\n      className={cn(\"relative h-1 w-full overflow-hidden rounded-full bg-muted\", className)}\n      {...props}\n    >\n      <span className=\"absolute inset-y-0 left-0 w-1/3 animate-bar-loader rounded-full bg-primary motion-reduce:w-full motion-reduce:animate-pulse\" />\n    </div>\n  )\n}\n\nexport { BarLoader, type BarLoaderProps }\n",
      "type": "registry:ui"
    }
  ],
  "cssVars": {
    "theme": {
      "animate-bar-loader": "bar-loader 1.4s ease-in-out infinite"
    }
  },
  "css": {
    "@keyframes bar-loader": {
      "0%": {
        "transform": "translateX(-100%)"
      },
      "100%": {
        "transform": "translateX(300%)"
      }
    }
  },
  "meta": {
    "version": "0.1.1"
  },
  "categories": [
    "loaders",
    "animations"
  ],
  "type": "registry:ui"
}