ThinkingState

Expandable agent traces for steps, reasoning, search, and coding work.

Installation

Preview

Source

Adapted from slev12397/beautiful-ui under the MIT License. Commercial icons were replaced and demo analytics were removed; attribution remains bundled with the component foundation.

API Reference

PropTypeDefaultDescription
variant"Steps" | "Reasoning" | "Search" | "Coding""Steps"Trace presentation.
onSettled() => voidCalled when the trace settles.
onToolSelect(tool: string | null) => voidCalled when a trace tool is selected.
onExpandedChange(expanded: boolean) => voidCalled when trace disclosure changes.