Thinking States
Thinking States: Conversational AI agent thinking bubble morphing through cognitive stages (evaluating, searching, reasoning, finalizing) with organic pulse dots. Free MIT React & Next.js source with Motion and Tailwind CSS, live preview, CLI install and docs.
Install Thinking States
npx motion-ui-skill add thinking-statesComponents install as source into your project. The interactive page also includes preview, code, documentation and install tabs.
Dependencies
clsxmotionreacttailwind-merge
Source files
Thinking States
Conversational AI agent thinking bubble morphing through cognitive stages (evaluating, searching, reasoning, finalizing) with organic pulse dots.
Synthesized from conversational agent UX patterns in transitions.dev. Replaces static spinners with dynamic status morphs that give users clear transparency into LLM planning and tool execution.
Install
npx motion-ui-skill add thinking-states
Dependencies
clsxmotionreacttailwind-merge
Usage
"use client";
import { ThinkingStates } from "@/components/agents/thinking-states";
export function ThinkingStatesDemo() {
return (
<div className="flex items-center justify-center p-8">
<ThinkingStates autoCycle={true} />
</div>
);
}
API Reference
ThinkingStates
| Prop | Type | Default | Required | Description |
|---|---|---|---|---|
stage |
"evaluating" | "searching" | "reasoning" | "synthesizing" | "finalizing" |
Controlled / internal cycle | No | Explicit stage override |
autoCycle |
boolean |
true |
No | Automatically cycle through stages for demonstration |
className |
string |
— | No | Additional CSS classes |