All components

Tool Call Timeline

AI

The collapsible agent trace from AI product UIs — nested tool calls with running / done / failed states, a live duration counter, and per-call results. Recursive tree layout with a connector spine; expand/collapse animates height via the grid-rows technique (no reflow flicker).

Found 3 sources · ranked by relevance
200 OK · 14.2 KB · text/html
components/ui/hero.tsx · +42 −0

Installation

Terminal
npx shadcn@latest add https://ui.saumyarex.xyz/r/tool-call-timeline.json

Props

PropTypeDefaultDescription
ToolCall.namestringThe tool's name, shown in mono (e.g. search_web).
ToolCall.status"pending" | "running" | "success" | "error""pending"Drives the icon, status text, and auto expand/collapse. Running shows a spinner + live counter.
ToolCall.durationnumberSeconds the call took, shown once it settles.
ToolCall (children)ReactNodeNest <ToolCallResult> and further <ToolCall>s to build the tree; a call with children becomes an expandable disclosure.
open / defaultOpen / onOpenChangeboolean / (open: boolean) => voidControl the disclosure. Defaults to open while running.

Dependencies

clsxtailwind-merge