About
A small animated dot-matrix loading indicator with customizable size, speed, color, and gradient, used to show a loading state in buttons or pages.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Cosmic Ray Loader to your project and fits it to your theme.
Code
How Cosmic Ray Loader is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import { SpaceCosmicRayLoader } from "@/components/ui/space-cosmic-ray-loader";
export default function SpaceCosmicRayLoaderDemo() {
return (
<div className="flex min-h-[200px] w-full items-center justify-center">
<SpaceCosmicRayLoader
dotSize={6}
gap={4}
speed={1.2}
color="#3b82f6"
bloom
/>
</div>
);
}








