Steps, sources and the timer play on their own. Open +3 more, press the header to fold the trail, or replay it.
An AI working panel with a live timer, searched sources and thinking steps that appear one by one.
Steps appear one at a time beside a shimmering title and live timer; source chips pop in and extra sources hide behind +N more. Hover or tab through sources for tooltips, press the header or Enter/Space to fold only the steps, and when finished the mark settles, the header becomes Worked for Ns and a check row appears. With loop it restarts after four seconds unless the sources were expanded.
Options for the assembled component.
steps*ThinkingStep[]Search and thinking steps revealed in order. Sources can link out and show tooltips; moreSources hide behind a +N more chip.
doneLabelstringLabel of the final row. Defaults to "Finished thinking".
stepMsnumberPause between two steps, in milliseconds. Defaults to 1300.
loopbooleanStarts over four seconds after finishing.
collapseOnDonebooleanFolds the steps away once finished while keeping the header visible.
onDone(seconds: number) => voidCalled once all steps are done, with the rounded elapsed seconds.
classNamestringExtra class on the root.
_thinking-state/thinking-state.tsxPlayback, live timer, collapsible header, timeline rows, source chips, tooltips, overflow control and looping.
_thinking-state/think-model.tsStep normalization, exact pause and chip-stagger timing, elapsed-time formatting and restart fingerprints.
_thinking-state/types.tsThinkingStep and ThinkingSource types.
_thinking-state/use-thinking-script.tsReplay-run state for the demo.
_thinking-state/thinking-state.cssReference colors and spacing as tokens on .tk, with dark theme, container query, touch sizing and reduced-motion handling.
Recreated from the behavior of a reference thinking-state panel. Colors and spacing are the reference values.
Steps, sources and the timer play on their own. Open +3 more, press the header to fold the trail, or replay it.