Skip to content
ProLifetime access for $199, paid once, every future release included
Truffle UI

Reasoning Trace

ProNew

Multi-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

PropTypeDefault
tabs*TraceTab[]

Tabs of trace views (e.g. Steps, Reasoning, Search, Coding).

—
activeboolean

Whether the agent is still actively thinking.

false
elapsedSecondsnumber

Elapsed time in seconds when finished or running.

—
defaultOpenboolean

Start expanded.

true
classNamestring—

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.