{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "meteors",
  "title": "Meteors",
  "author": "VenusUI",
  "description": "Streaks of light falling diagonally across a card or section.",
  "files": [
    {
      "path": "registry/default/ui/meteors.tsx",
      "content": "import * as React from \"react\"\n\nimport { cn } from \"@/lib/utils\"\n\ninterface MeteorsProps extends React.ComponentProps<\"div\"> {\n  /** Number of meteors. */\n  count?: number\n}\n\n// Deterministic pseudo-random numbers, so server and client render the same\n// positions (no hydration mismatch) without storing a list.\nfunction seeded(index: number, salt: number) {\n  const x = Math.sin(index * 12.9898 + salt * 78.233) * 43758.5453\n  return x - Math.floor(x)\n}\n\n/**\n * Streaks of light falling diagonally across their positioned parent.\n * Decorative; hidden when the user prefers reduced motion.\n */\nfunction Meteors({ count = 16, className, ...props }: MeteorsProps) {\n  return (\n    <div\n      aria-hidden=\"true\"\n      data-slot=\"meteors\"\n      className={cn(\"pointer-events-none absolute inset-0 overflow-hidden motion-reduce:hidden\", className)}\n      {...props}\n    >\n      {Array.from({ length: count }, (_, index) => (\n        <span\n          key={index}\n          className=\"absolute h-px w-24 rotate-[215deg] animate-meteor bg-linear-to-r from-foreground/70 to-transparent opacity-0\"\n          style={{\n            top: `${Math.round(seeded(index, 1) * 40) - 10}%`,\n            left: `${Math.round(seeded(index, 2) * 110)}%`,\n            animationDelay: `${(seeded(index, 3) * 6).toFixed(2)}s`,\n            animationDuration: `${(3 + seeded(index, 4) * 5).toFixed(2)}s`,\n          }}\n        />\n      ))}\n    </div>\n  )\n}\n\nexport { Meteors, type MeteorsProps }\n",
      "type": "registry:ui"
    }
  ],
  "cssVars": {
    "theme": {
      "animate-meteor": "meteor 5s linear infinite"
    }
  },
  "css": {
    "@keyframes meteor": {
      "0%": {
        "transform": "translateX(0)",
        "opacity": "1"
      },
      "70%": {
        "opacity": "1"
      },
      "100%": {
        "transform": "translateX(-600px)",
        "opacity": "0"
      }
    }
  },
  "meta": {
    "version": "0.1.0"
  },
  "categories": [
    "backgrounds",
    "effects",
    "animations"
  ],
  "type": "registry:ui"
}