About
Spinner
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Spinner to your project and fits it to your theme.
Code
How Spinner is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import React from "react";
import { Spinner } from "@/components/ui/spinner";
export const SpinnerDemo = () => {
return (
<div className="min-h-[100vh] flex flex-col gap-10 items-center justify-center pb-4">
<div className="flex flex-col gap-5 w-[60%]">
<div className="font-bold text-xl dark:text-white">Default</div>
<Spinner />
</div>
<div className="flex flex-col gap-5 w-[60%]">
<div className="font-bold text-xl dark:text-white">Custom size</div>
<Spinner size={30} />
</div>
<div className="flex flex-col gap-5 w-[60%]">
<div className="font-bold text-xl dark:text-white">Custom color</div>
<Spinner color="red" />
</div>
</div>
);
};

