About
A small circular loading spinner for indicating an async or in-progress UI state, with size and color-tone variants.
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 Spinner from "@/components/ui/spinner";
export default function SpinnerDemo() {
return (
<div className="flex min-h-[200px] w-full items-center justify-center gap-10 bg-background p-10">
<Spinner size="xs" tone="primary" />
<Spinner size="sm" tone="info" />
<Spinner size="md" tone="success" />
<Spinner size="lg" tone="warning" />
<Spinner size="xl" tone="danger" />
</div>
);
}







