pedrolunet

Swirl Spinner

Component

About

A tiny loading spinner where a bright cell glides clockwise around the edge of a 3x3 grid, trailing a fading light; a React port of the Swirl spinner from Pedro Lunet's loadsv Svelte library.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Swirl Spinner to your project and fits it to your theme.

Code

How Swirl Spinner is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import Swirl from "@/components/ui/swirl";

export default function SwirlDemo() {
  return (
    <div className="flex h-[400px] w-full items-center justify-center">
      <Swirl size={48} />
    </div>
  );
}

More by pedrolunet

View all
  • Spark Spinner

    Spark Spinner

    3
  • Flip Spinner

    Flip Spinner

    1
  • Clock Spinner

    Clock Spinner

    1
  • Wave Spinner

    Wave Spinner

  • Snake Spinner

    Snake Spinner

  • Ring Spinner

    Ring Spinner

  • Slide Spinner

    Slide Spinner

  • Ribbon Spinner

    Ribbon Spinner