ToolSteps

Agent tool-call log. A spinner turns into a drawn check, the connector fills, details fade in. AI.

Open playground
  1. Search the docssearch("spring easing")
  2. Read 3 pages
  3. Write the summary

About

ToolSteps is a React component in the AI category of smoui. It is typed, ships no stylesheet, follows your theme through CSS variables, and honors prefers-reduced-motion. Import it with import { ToolSteps } from "@ashutoshswamy/smoui" and set steps, active, stepEvery.

Install

Terminal
npm i @ashutoshswamy/smoui

Usage

TSX
import { ToolSteps } from "@ashutoshswamy/smoui";

<ToolSteps active={step} steps={[{ label: "Search the docs", detail: "search()" }, { label: "Write the summary" }]} />

Props 3

steps

Steps in order.

{ label: string; detail?: string }[]
active

Controlled index of the running step; earlier ones are done. Without it the list plays itself.

number
stepEvery / loop

Seconds per step; replay for demos.

number / booleandefault 1.2 / false