About
Expandable agent trace that runs once and settles: steps, reasoning, web search with sources, or a coding tool run with diff stats. Content and variant come through props; shadcn tokens in light and dark.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Thinking State to your project and fits it to your theme.
Code
How Thinking State is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import ThinkingState from "@/components/ui/thinking-state";
export default function ThinkingStateDemo() {
return (
<div className="flex min-h-[520px] w-full items-center justify-center bg-background p-8">
<ThinkingState
variant="coding"
activeLabel="Running tools"
doneLabel="Ran 4 tools"
defaultExpanded
className="w-full max-w-md rounded-xl border border-border bg-card p-5 shadow-sm"
rows={[
{ kind: "search", primary: "Grep", secondary: "rateLimit(", mono: true },
{ kind: "read", primary: "Read", secondary: "src/api/middleware.ts", mono: true },
{ kind: "edit", primary: "Edit", secondary: "src/api/rate-limit.ts", mono: true, add: 74, del: 41 },
{ kind: "run", primary: "Run", secondary: "pnpm test api", mono: true },
]}
/>
</div>
);
}
















