{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "skeleton-shimmer",
  "title": "Skeleton Shimmer",
  "author": "VenusUI",
  "description": "Loading placeholders with a light sweep, plus a text-lines helper.",
  "files": [
    {
      "path": "registry/default/ui/skeleton-shimmer.tsx",
      "content": "import * as React from \"react\"\n\nimport { cn } from \"@/lib/utils\"\n\n/** A placeholder block with a light sweep. Size it with classes, e.g. `h-4 w-32`. */\nfunction SkeletonShimmer({ className, ...props }: React.ComponentProps<\"div\">) {\n  return (\n    <div\n      aria-hidden=\"true\"\n      data-slot=\"skeleton-shimmer\"\n      className={cn(\n        \"relative overflow-hidden rounded-md bg-muted\",\n        \"after:absolute after:inset-0 after:-translate-x-full after:animate-skeleton-shimmer after:bg-linear-to-r after:from-transparent after:via-foreground/[0.07] after:to-transparent motion-reduce:after:hidden\",\n        className\n      )}\n      {...props}\n    />\n  )\n}\n\n/**\n * Lines of placeholder text, the last one shorter. Wrap loading regions in an\n * element with `aria-busy=\"true\"` and a visually hidden \"Loading…\" so screen\n * readers know content is coming.\n */\nfunction SkeletonText({ lines = 3, className }: { lines?: number; className?: string }) {\n  return (\n    <div className={cn(\"space-y-2\", className)}>\n      {Array.from({ length: lines }, (_, i) => (\n        <SkeletonShimmer key={i} className={cn(\"h-3.5\", i === lines - 1 ? \"w-2/3\" : \"w-full\")} />\n      ))}\n    </div>\n  )\n}\n\nexport { SkeletonShimmer, SkeletonText }\n",
      "type": "registry:ui"
    }
  ],
  "cssVars": {
    "theme": {
      "animate-skeleton-shimmer": "skeleton-shimmer 1.6s ease-in-out infinite"
    }
  },
  "css": {
    "@keyframes skeleton-shimmer": {
      "to": {
        "transform": "translateX(200%)"
      }
    }
  },
  "meta": {
    "version": "0.1.0"
  },
  "categories": [
    "loaders"
  ],
  "type": "registry:ui"
}