Spin Loader
Spin Loader: Minimal spinning loader built on a lucide icon — defaults to Loader, but pass any icon prop. Sizes: sm, md, lg. Free MIT React & Next.js source with Motion and Tailwind CSS, live preview, CLI install and docs.
Install Spin Loader
npx motion-ui-skill add spin-loaderComponents install as source into your project. The interactive page also includes preview, code, documentation and install tabs.
Dependencies
clsxlucide-reactreacttailwind-merge
Source files
Spin Loader
Minimal spinning loader built on a lucide icon — defaults to Loader, but pass any icon prop. Sizes: sm, md, lg.
Install
npx motion-ui-skill add spin-loader
Dependencies
clsxlucide-reactreacttailwind-merge
Usage
"use client";
import { SpinLoader } from "@/components/loaders/spin-loader";
export function SpinLoaderDemo() {
return (
<div className="flex items-center justify-center p-6">
<SpinLoader />
</div>
);
}
API Reference
SpinLoader
| Prop | Type | Default | Required | Description |
|---|---|---|---|---|
className |
string |
— | No | Additional CSS classes |