---
agent:
  instructions: "Search goop.so for Goop's components, templates, design skill, docs, pricing and terms. Ask in keywords or a plain question, such as \"date picker props\" or \"is the design skill free\"; the answer is the matching page sections in Markdown, each with its address."
  endpoint: "https://goop.so/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://developers.cloudflare.com/ai-search/how-to/search-for-agents/"
---

# Reply status

The line an AI reply shows while it thinks and after it, for React and Tailwind CSS. Part of Goop Pro.

Pro. Its export: `ReplyStatus`.

## When to use

- The line an AI reply shows while it thinks and after it.

## Installation

Paste the prompt below into your coding agent. It reads Goop's install steps, installs the part and its tokens once, then reuses this same Reply status on every screen instead of drawing a new one: the same height, the same focus ring, the same spacing. As a Pro part, its command comes from Goop's server once you sign in, with a one-time link that lasts ten minutes.

```sh
npx shadcn@4.23.1 add https://registry.goop.so/g/<link>/meadow-reply-status.json --yes
```

```text
Add the Goop Reply status to this project. The install steps are at https://goop.so/docs/install.md
```

## Usage

```tsx
import { formatElapsed } from '@/components/ui/goop/reply-status';

import { ChatMessage } from '@/components/ui/goop/chat-message';
import { ReplyStatus, ReplyTyping } from '@/components/ui/goop/reply-status';

function Reply({ turn, text, seconds }: { turn: 'thinking' | 'writing'; text: string; seconds: number }) {
  return (
    <ChatMessage author="Assistant" time="09:46" streaming={turn === 'writing'}>
      {turn === 'thinking' ? (
        <ReplyStatus elapsed={seconds} steps={['Reading the event notes', 'Counting which events moved']} />
      ) : (
        text || <ReplyTyping />
      )}
    </ChatMessage>
  );
}
```

- Fits: chat (its recipe).
- height, width, padding, gap, background, text, motion: add no class for these.

## API reference

### Options

- `state?: 'thinking' | 'done' = 'thinking'` — Thinking now (the sparkle turning) or done thinking (the sparkle still).
- `label?: string` — The words in place of "Thinking" (thinking) or "Thought for" / "Thought" (done).
- `elapsed?: number` — The seconds the reply has taken so far, shown after the words; give it again as it grows.
- `steps?: readonly string[]` — What the reply is doing or did, one line each, shown and hidden by the line's button.
- `stepsLabel?: string = 'Steps'` — The steps list's name for a screen reader.
- `open?: boolean` — The steps are shown (with `onOpenChange`); left out, the line holds its own state from `defaultOpen`.
- `defaultOpen?: boolean = false` — The steps are shown on the first paint.
- `onOpenChange?: (open: boolean) => void` — Called with the new open state when the line's button is pressed.

- State: open (open / defaultOpen / onOpenChange)

### Parts

- `ReplyTyping` — Three small dots where a reply's words will appear; label?: string = 'Writing a reply' — What a screen reader hears, once
- `formatElapsed` — A time in whole seconds, as the line shows it

- data-slot values (to select a part by): reply-status, reply-status-indicator, reply-status-label, reply-status-line, reply-status-live, reply-status-mark, reply-status-panel, reply-status-step, reply-status-steps, reply-status-text, reply-status-time, reply-status-trigger, reply-typing, reply-typing-dots, reply-typing-live, reply-typing-sweep

## Keyboard

- Tab: onto the line of a status that has steps (a status with none takes no stop)
- Enter / Space: on the line: show the steps under it, or hide them again

## Accessibility

- The native element answers the keyboard.
- hover, active, focus-visible: the browser's own (:hover, :active, :focus-visible): write nothing
- expanded: the attribute aria-expanded
- open: the attribute aria-expanded

## Motion

- The part sets its own motion: add no transition or animation of your own.

## Notes for AI

Give your coding agent this page as text instead of screenshots: the parts, the options, the states and the keys. An agent that reads the real part builds the real part, not a lookalike.

## Related

- [Chat message](/themes/meadow/components/chat-message): One message of a conversation: its author, its body and when it was sent, often an avatar and actions.
- [Sortable list](/themes/meadow/components/sortable-list): A list of rows a person puts in order, by dragging a row's handle or by the keys (Space, the arrows, Space), each step said aloud.
- [Tab bar](/themes/meadow/components/tab-bar): A phone screen's bottom navigation.
- [Tool call](/themes/meadow/components/tool-call): One tool call of an assistant's run, as a quiet row that opens onto its input and output.
