# Thinking

> Pulsing dots with time-based thinking and cancel states.

## Install

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

## Import

```tsx
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

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