Docs / Thinking

Thinking

Pulsing dots with time-based thinking and cancel states.

Install

npx shadcn@latest add https://crate.onerollstudios.com/r/thinking.json

Playground

Thinking…

Callbacks (onCancel) are logged here when the component calls them.

<Thinking elapsedMs={0} onCancel={() => {}} />

Import

import { Thinking } from "@/components/agent-wait-states/thinking";

Props

PropTypeRequiredDefaultNotes
classNamestringno
accentbooleannofalse
labelsPartial<CrateLabels>noReplace any of this component's labels. Overrides CrateProvider.
elapsedMsnumberno0
onCancel(() => void)no
labelstringno

Labels

Override with the labels prop or a CrateProvider.

LabelEnglish default
stillThinking"Still thinking…"
thinking"Thinking…"
cancel"Cancel"

Example

<Thinking elapsedMs={elapsedMs} onCancel={cancel} accent />

For coding agents: /llms/thinking.md, generated from the same source.