Shadcn.io is not affiliated with official shadcn/ui
React AI Chain Of Thought
React AI chain of thought component with collapsible reasoning steps and search results for transparent AI thinking
Ever noticed how some AI apps show you the thinking process—like "searching the web", "analyzing results", "forming response"? That's what this component does. It's a collapsible panel that breaks down the AI's reasoning into visible steps, so users aren't just staring at a spinner wondering what's happening. Each step can have its own status (complete, active, pending), custom icons, and even nested content like search results or images. Super useful for research assistants, agents that browse the web, or anywhere you want to build trust by showing your work. The whole thing collapses down to a single line when users don't care about the details. Built on Radix primitives so the animations and accessibility are solid out of the box.
Chain Of Thought preview
Installation
Related Components
React AI Reasoning
Simpler thinking display
React AI Message
Chat message container
React AI Tool
Tool execution display
React AI Sources
Citation sources list
React AI Task
Task progress tracking
React AI Plan
Multi-step planning