ChainOfThought

The steps an AI agent takes — searching, reading, calling tools — each with its status, and optional collapsible detail

Category: display · WCAG 2.2-AA · ai, agent, steps, chain-of-thought, reasoning, progress, tools

States

Props

PropTypeDefaultDescription
itemsChainOfThoughtItem[]—The steps, in order. Each has `id`, `title`, optional `description`, `status` (`pending | active | complete | error`, plus the `current` / `upcoming` aliases), optional `detail` (collapsible content that turns the title into a toggle) and optional `icon`.
labels{ pending?: string; active?: string; complete?: string; error?: string }—Overrides for the component’s user-visible strings (i18n) — the status text a screen reader hears after each step title.

Design tokens

When to use

When not to use

How to build an accessible ChainOfThought in React →

Examples

Agent steps

<ChainOfThought
  items={[
    { id: 'search', title: 'Searched the docs for "refund policy"', status: 'complete' },
    { id: 'read', title: 'Reading 3 pages', status: 'active' },
    { id: 'answer', title: 'Write the answer', status: 'pending' },
  ]}
/>

With collapsible detail

<ChainOfThought
  items={[
    {
      id: 'search',
      title: 'Searched the web',
      status: 'complete',
      detail: 'cascivo.com/docs · github.com/cascivo/cascivo · npmjs.com/package/@cascivo/react',
    },
    { id: 'fail', title: 'Fetch pricing page', description: 'The page returned 404.', status: 'error' },
  ]}
/>

Related components

← Back to docs