Components
Loading preview...
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.
npx shadcn@latest add https://21st.dev/r/ruhith369/loader-gridimport LoaderGrid from "@/components/ui/loader-grid";
export default function DemoOne() {
return <LoaderGrid />;
}