Inspect the supplied evidence
Review summaryIn progress
- ✓
- ◉Compare responsibilitiesChecking the owner of each decision.
A collapsible sequence of work summaries, with step states, source badges, images, and captions.
npm install @noorddev/vlak-react
Load the stylesheet once at your app root, then import the components you use.
import "@noorddev/vlak-react/css";
import { ThoughtSteps } from "@noorddev/vlak-react";Per-component imports are available at @noorddev/vlak-react/components/thought-steps.
npx @noorddev/vlak-cli add thought-steps
Adds the component and its dependencies to components/vlak/. Follow the StyleX setup to compile the source in your application.
npx shadcn add https://vlak.dev/r/thought-steps.json
Installs the same source through the shadcn CLI.
import { ThoughtSteps } from "@noorddev/vlak-react";
<ThoughtSteps title="Review summary" defaultOpen steps={[{ id: "source", title: "Read the brief", state: "complete", description: "Checked the supplied scope and owners." }, { id: "review", title: "Compare responsibilities", state: "active" }]} />See the integration example to compose these components with your application's model and data.
Application-supplied work summaries, with per-step state and supporting evidence.
| Prop | Type | Default | Description |
|---|---|---|---|
title | ReactNode | ||
status | ReasoningStatus | Describes application-supplied progress, without generating a thinking trace. | |
statusLabel | string | ||
defaultOpen | boolean | ||
onOpenChange | (open: boolean) => void | ||
variant | "inline" | "panel" | An inline disclosure for message activity, or a framed panel. | |
durationMs | number | Optional elapsed time supplied by the application, in milliseconds. | |
measureDuration | boolean | Measure this component's streaming interval. Off by default. | |
autoExpand | boolean | Open when a new streaming interval begins. Manual disclosure remains the default. | |
autoCollapseDelay | number | false | Close once after completion unless the reader manually changed the disclosure. | |
stepsrequired | readonly ThoughtStep[] |
Also accepts Omit<DetailsHTMLAttributes<HTMLDetailsElement>, "title">.
The ref reaches HTMLDetailsElement.
| Keys | Does |
|---|---|
| Tab | Moves through the supplied native controls in reading order |
| Enter, Space | Activates focused buttons and disclosure summaries |
The same styles are available as CSS. Native HTML provides the static presentation; React or application code supplies state updates and actions.
npm install @noorddev/vlak
import "@noorddev/vlak/css";
<details class="rs-thought-steps"><summary>Review summary</summary><ol class="rs-thought-steps-list"><li class="rs-thought-steps-step">Checked the supplied source</li></ol></details>