Components
Agent Trace
Agent Trace
Compact, with a failed step
When to use
Use Agent Trace to show an AI agent working, one step at a time. It is proof on a product page: what the agent read, what it chose, what it checked.
Keep titles short and say what happened. Put the file or command in the detail. Use the body for one or two sentences, not logs.
Pair it with Prompt Input or Prompt to Page: the prompt on one side, the trace on the other. Use streaming on one trace per page.
Props
steps
Array, 4 sample steps
Each step has a title, a detail, a body and a status. A step without a body has no toggle.
status
done, running or failed
Set per step. Done shows a check, running a lime dot, failed a cross. The state is also written as text for screen readers.
defaultOpen
none, running or all. Default running
Which rows are open on first render.
density
default or compact. Default default
Compact tightens the padding and puts the detail beside the title.
streaming
On or off. Default off
Steps appear one after another when the trace scrolls into view. Off on the canvas and with reduced motion.
radius
2, 4, 6, 8, 12 or 16. Default 12
Corner radius of the outer frame.