About
An animated circular loading indicator that inherits the current text color to show an in-progress action or content load.
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 Basic() {
return (
<div className="flex items-center gap-6">
<Spinner size="sm" />
<Spinner size="md" />
<Spinner size="lg" />
<Spinner size="xl" />
{/* The spinner takes the text color */}
<Spinner className="text-primary-500" size="lg" />
{/* `label` is what screen readers hear - "Loading…" by default */}
<Spinner className="text-danger-500" label="Loading orders" size="lg" />
</div>
);
}







