Finished
The row stays and says it finished.
<ThinkingIndicator active={false} doneLabel="Thought for 12s" />Shows assistant progress with optional timing and steps, retaining a completion message when work stops.
<ThinkingIndicator showElapsed />pnpm add @usefragments/uiImport styles once from @usefragments/ui/styles. See the installation guide for framework and theme setup.
Import ThinkingIndicator once, then compose its parts with dot notation.
ThinkingIndicator.StepsThinkingIndicator.StepThe row stays and says it finished.
<ThinkingIndicator active={false} doneLabel="Thought for 12s" />A plan under the live line, folded behind its count.
<ThinkingIndicator label="Checking the request…">
<ThinkingIndicator.Steps label="Plan" foldable>
<ThinkingIndicator.Step label="Read the request" status="complete" />
<ThinkingIndicator.Step label="Scan changed files" status="pending">12 of 40 files</ThinkingIndicator.Step>
<ThinkingIndicator.Step label="Write the summary" />
</ThinkingIndicator.Steps>A failed step says so in words beside the danger glyph.
<ThinkingIndicator active={false} doneLabel="Stopped">
<ThinkingIndicator.Steps>
<ThinkingIndicator.Step label="Read the request" status="complete" />
<ThinkingIndicator.Step label="Fetch the pull request" status="error" />
</ThinkingIndicator.Steps>
</ThinkingIndicator>Prop | Type | Default | Description |
|---|---|---|---|
active | boolean | undefined | true | Whether the assistant is still working; when false the row stays and shows doneLabel |
children | React.ReactNode | Not set | ThinkingIndicator.Steps (label, foldable, defaultOpen) holding ThinkingIndicator.Step (label, status idle|pending|complete|error, detail children) |
doneLabel | React.ReactNode | Done | What the row says once work stops |
label | React.ReactNode | Thinking… | What the assistant is doing |
showElapsed | boolean | undefined | false | Show how long the work has run, outside the live region; frozen once work stops |
Step.children | React.ReactNode | Not set | Optional detail under the label (a file name, a count). |
Step.labelRequired | React.ReactNode | Not set | What the step does. |
Step.status | StepStatus | undefinedpendingidleerrorcomplete | Not set | Where the step stands. |
Steps.childrenRequired | React.ReactNode | Not set | — |
Steps.defaultOpen | boolean | undefined | Not set | Whether a foldable list starts open. |
Steps.foldable | boolean | undefined | Not set | Fold the list behind an "N of M done" toggle. |
Steps.label | string | undefined | Not set | What the list is, read with its count. |