Skip to content
AI chat

Trace

The steps behind an answer, folded under one line.

import { Trace } from "@flinbu/seed";

Pluto's work on a contrast check

  1. Read tokens.json435 tokens
  2. Opened proposal #12
  3. Ask for review, Not started
import { Trace } from "@flinbu/seed";

  return <Trace className="w-full max-w-xl" summary="Pluto checked your Dark theme · 6s" steps={[...STEPS.slice(0, 2), { title: "Opened proposal #12", href: "#" }, { title: "Ask for review", status: "pending" }]} />;

Use it for

  • Above Pluto's answer, folded once it's complete.

Use something else for

  • Long logs: link to them.

Props

PropTypeDefaultDescription
steps{ title, description?, icon?, status?, detail?, href? }[]–In order.
summaryReactNode–Folds the trace.
open / defaultOpen / onOpenChangebooleantrueFolded state.

Accessibility

  • Each step's status is in its name, not only its icon.
  • Steps with detail are disclosure buttons.