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-loader

Components install as source into your project. The interactive page also includes preview, code, documentation and install tabs.

Dependencies

  • clsx
  • lucide-react
  • react
  • tailwind-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

  • clsx
  • lucide-react
  • react
  • tailwind-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

Browse this category