The LoaderGrid component is a lightweight, colorful loading animation built with React, TypeScript, and Tailwind CSS. It uses two absolutely positioned elements that animate their box-shadow and size to create a dynamic, rotating motion. The component starts as a small square rotated by 165 degrees, with each pseudo-element expanding and contracting while shifting the positions of its glowing colored shadows. This effect produces an eye-catching illusion of spinning lights moving around a center point. The loader is small and reusable, making it perfect for modern web applications that need a stylish yet minimal loading indicator without relying on external libraries or heavy assets.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds LoaderGrid to your project and fits it to your theme.
Code
How LoaderGrid is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import LoaderGrid from "@/components/ui/loader-grid";
export default function DemoOne() {
return <LoaderGrid />;
}








