Reasoning Trace
ProNewMulti-mode expandable agent reasoning trace with Steps, Reasoning, Search, and Coding tabs plus a live clock.
Installation
pnpm dlx shadcn@latest add @viewport/reasoning-trace
First time? Add the @viewport registry to components.json. Setup takes one minute.
Usage
The code behind the preview above comes with Truffle Pro.
Props
| Prop | Type | Default |
|---|---|---|
| tabs* | TraceTab[]Tabs of trace views (e.g. Steps, Reasoning, Search, Coding). | — |
| active | booleanWhether the agent is still actively thinking. | false |
| elapsedSeconds | numberElapsed time in seconds when finished or running. | — |
| defaultOpen | booleanStart expanded. | true |
| className | string | — |
Accessibility
- Uses a proper tablist/tabpanel pattern with aria-selected and a disclosure button with aria-expanded.
- Status is announced once through a polite status region instead of on every tick of the timer.
- Tab indicator and disclosure animate instantly under reduced motion.