shadcn Trace

The building block for reasoning, tool calls, sources and more. Preview it in Figma or edit it in DS Manager with your own tokens.

Trace shadcn/ui component in FigmaLoading the Figma preview…

In the Figma kit

Line states: default, running, error and pending, each with default, hover and focus. Optional description and trailing icon, and a collapsible line that opens to nested steps. The Figma component uses the same variant and size names as the React code, so the design maps directly to the component in your project.

Figma kitReact8 stylesLast updated 21 Oct 2026

Trace component for shadcn/ui in Figma

Trace lists the steps of an agent or a long task: each line has an icon, a title and an optional description such as a duration. Lines can be done, running, failed or pending, and a collapsible line opens to show nested steps or a Code Block.

FAQs

Which states does a Trace line have?

Default for done work, running, error and pending. Running shows a shimmer on the title, error uses the destructive color and pending lowers the opacity. There is no separate success state.

How do I show nested steps or tool output?

Use Trace / Collapsible. Its trigger is a Trace line with a chevron, and when it is open the content slot sits behind a 1px rule under the icon. Put more lines or a sm Code Block inside.

Can a line link somewhere?

Yes. Turn on Show Trailing Icon to add an icon after the text, for example ArrowUpRight for a source link.

Are hover and focus states included?

Yes. Trace / Line and Trace / Collapsible have Default, Hover and Focus variants. An error line stays destructive on hover.