npx shadcn@4.23.1 add https://registry.goop.so/g/<link>/meadow-reply-status.json --yesReply status
ProThe line an AI reply shows while it thinks and after it, for React and Tailwind CSS. Part of Goop Pro.
What an agent sees
- ReplyTypingThree small dots where a reply's words will appear
- formatElapsedA time in whole seconds, as the line shows it
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>
);
}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.
npx shadcn@4.23.1 add https://registry.goop.so/g/<link>/meadow-reply-status.json --yesAdd the Goop Reply status to this project. The install steps are at https://goop.so/docs/install.mdUsage
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
| Option | Type | What it does |
|---|---|---|
| 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)
| Part | What it is |
|---|---|
| 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
| Key | What it does |
|---|---|
| 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
Its states are drawn from attributes and props, so assistive technology and your agent read the same thing:
| State | Drawn by |
|---|---|
| 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.