# AI Reasoning Panel

Collapsible thinking or reasoning section on an assistant message that opens while streaming and collapses when done.

- id: `ai-reasoning-panel`
- Page: https://agentic-ui-kit.com/components/ai-reasoning-panel
- Live preview: https://agentic-ui-kit.com/live/component/ai-reasoning-panel?piece=ai-reasoning-panel

## Install

```bash
agentic-ui add ai-reasoning-panel
npx shadcn@4.17.0 add @agentic-ui/ai-reasoning-panel
```

## Metadata

- **Level:** block
- **Category:** block
- **Installable in:** Radix UI (registry variant new-york), Base UI (registry variant base-vega)
- **Capabilities:** reasoning-stream, thinking-disclosure, auto-open-while-streaming, auto-collapse-when-done, thought-for-duration-label, live-elapsed-timer, manual-override, stream-replay, reduced-motion, dark-mode
- **Intents:** converse, explore-detail
- **Suits domains:** ai-workspace, ai-agents, devtools, saas, support
- **Interaction:** expand-collapse, keyboard-focus, auto-scroll
- **Screen role:** detail
- **Density:** comfortable
- **Dark mode:** yes
- **Use it for:** collapsible thinking or reasoning section on an assistant message that opens while streaming and collapses when done, show the model's chain of thought with a 'Thought for 6 seconds' label, reasoning panel for an AI chat that auto-expands during thinking and folds into a summary, thinking stream disclosure above the final answer in a chat message
- **Avoid when:** a step-by-step run with tool calls and results (use ai-agent-run-trace), a single typing indicator before the first token (use a typing indicator, not a transcript of the thinking), the model does not expose its reasoning text
- **Preserve when adapting:** auto-open-while-streaming, manual-override, single-status-announcement
- **Replace when adapting:** content, label-copy, duration-source
- **Adaptation effort:** low
- **Coupling:** low
- **Quality breakdown:** visual 9/10, responsive 9/10, accessibility 9/10, code 9/10
- **npm dependencies:** lucide-react
- **npm dependencies (registry):** lucide-react@0.577.0
- **Registry dependencies:** lib-primitives
