About
A lightweight, customizable React spinner component with dynamic sizing and smooth staggered animation for modern UIs
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";
import { Button } from "@/components/ui/button";
const SpinnerDemo = () => {
return (
<div className="flex w-full h-screen justify-center items-center">
<Spinner size={50} />
</div>
);
};
const SpinnerInverted = () => {
return (
<div className="bg-foreground flex w-full h-screen justify-center items-center">
<Spinner size={50} invert />
</div>
);
};
const SpinnerWithButton = () => {
return (
<div className="flex w-full h-screen justify-center items-center">
<Button disabled>
<Spinner invert className="me-2" /> Button With Spinner
</Button>
</div>
);
};
export { SpinnerDemo, SpinnerInverted, SpinnerWithButton };








