About
A loading indicator for AI chat interfaces that shows an animated pixel wave while the model is "thinking", with a rolling seconds counter that settles into a "Thought for Ns" summary and expands to reveal the reasoning once finished.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Thinking Indicator to your project and fits it to your theme.
Code
How Thinking Indicator is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
"use client";
import * as React from "react";
import UiThinking from "@/components/ui/ui-thinking";
export default function UiThinkingDemo() {
const [done, setDone] = React.useState(false);
React.useEffect(() => {
const timer = window.setTimeout(() => setDone(true), 4000);
return () => window.clearTimeout(timer);
}, []);
return (
<div className="flex w-full items-center justify-center p-10">
<UiThinking
done={done}
onDone={(seconds) => console.log(`thought for ${seconds}s`)}
>
The reasoning, shown once thinking is done.
</UiThinking>
</div>
);
}
















