design-infraGitHub
Report a problem or share feedback← Catalog

Ai Reasoning

curatedtheme-awarefree

smoothui/ai-reasoning

Collapsible AI reasoning trace that shimmers only while the model works, reports how long it took and gets out of the way.

state · loop — subtledrop-inCalmRefinedTechnical
$npx shadcn@latest add @smoothui/ai-reasoning

npm deps: lucide-react, motion

Our notes

Collapsible reasoning trace: the label shimmers 'Thinking' only while isStreaming, then settles to 'Thought for 3.2s' (measured, or pass duration) and auto-collapses — until the user toggles it, after which it stops deciding for them. Muted-foreground chrome, inherits the theme; no shimmer under reduced motion.
Source
SmoothUI
Kind
component
Categories
agent-ui, ai-chat
Use as
drop-in — replaces your component
Applies to
agent-uiai-chataccordion
Motion
on state, loop · subtle · motion · medium cost · respects reduced motion
Tags
ai, reasoning, thinking, collapsible, chat, trace, spring, complexity-medium, reduced-motion
Licence
MIT ("MIT License — Copyright (c) 2024 Eduardo Calvo", github.com/educlopez/smoothui).
Live demo
smoothui.dev
Docs
smoothui.dev