Browse components
Reasoning
Collapsible "thinking" block for AI reasoning/thought tokens. ReasoningTrigger shows a shimmering "Thinking..." while isStreaming, then "Thought for N seconds" (duration measured automatically or passed in); ReasoningContent renders the reasoning text as markdown with Streamdown. Auto-opens when streaming starts and auto-closes one second after it ends; defaultOpen={false} disables the auto-open, a reader's manual toggle is respected, and a controlled parent receives both requests through onOpenChange. Use it above a message response when the model exposes reasoning.
pnpm dlx shadcn@latest add @uifiles/reasoning
Streaming
Opens itself while the thought streams in and closes one second after it ends.
Finished, open
A duration was supplied, so the trigger reads how long the model thought. Open by default; the fence, table and formula scroll in their own boxes.
Finished, collapsed
No duration, so the trigger only says the model thought. Collapsed until opened.