Thinking
Pulsing dots with time-based thinking and cancel states.
Install
npx shadcn@latest add https://crate.onerollstudios.com/r/thinking.jsonPlayground
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
| Prop | Type | Required | Default | Notes |
|---|---|---|---|---|
className | string | no | ||
accent | boolean | no | false | |
labels | Partial<CrateLabels> | no | Replace any of this component's labels. Overrides CrateProvider. | |
elapsedMs | number | no | 0 | |
onCancel | (() => void) | no | ||
label | string | no |
Labels
Override with the labels prop or a CrateProvider.
| Label | English 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.