Skip to content
Ballpoint

Trace

What an agent did, one line a step: an icon, a title and what it came to, some of them opening to show more.

From shadcn/ui
Built on Base UI Collapsible
Searched for minimumReleaseAgeRead package.json38 linesRunning the testsBuild failed2 errorsDeploy to staging

Installation

pnpm dlx shadcn@latest add @ballpoint/trace

Usage

tsx
import { Trace, TraceIcon, TraceLine, TraceTitle } from "@/components/ui/trace"

<Trace>
  <TraceLine>
    <TraceIcon><SearchIcon /></TraceIcon>
    <TraceTitle>Searched for minimumReleaseAge</TraceTitle>
  </TraceLine>
</Trace>

Examples

Expandable steps

A row that opens to its detail: output, reasoning.

The hatching can be a pattern, so every bar shares one definition and nothing is drawn twice.

Nested

A summary that opens into its own steps.

Wrap a line in a link and it takes the link's focus and keys.

API reference

TraceLine status
"running" | "error" | "pending"

Pulses the title, writes it in red pen, or fades it.

TraceCollapsible open / defaultOpen / onOpenChange
default false
boolean

Open or closed, controlled or not.

TraceCollapsibleContent keepMounted
default false
boolean

Keep the detail mounted while closed, so nested open state is kept.

TraceIcon
span

Decorative: the title is the step's name, so say what happened in it.

Every other prop goes to Base UI's Collapsible.