Search

Search components and flows across the catalog

ThatDesignUIOriginalInteractive preview

Streaming AI reply

A chat answer that thinks with bouncing dots, streams in word by word with a caret, then reveals sources and Copy / Replay actions.

Category
AI
Platform
Responsive

Interactive componentClick through it, resize it, or switch states. It’s real UI, not a screenshot.Auto-play state

Use this component

Free to use. It works on its own in any React and Tailwind project, so you can add it with one command, paste the code, or hand the prompt to your coding agent.

FreeReact 18+Tailwind v3.4 or v4No extra packages

1. Add it with the shadcn CLI

npx shadcn@latest add https://www.thatdesignui.com/r/ai-reply-stream.json

2. Use it

Every prop is optional
app/page.tsx
import AiReplyStream from "@/components/ai-reply-stream";

export default function Page() {
  return <AiReplyStream />;
}

Prefer to paste it yourself? Open the .

Under the hood

How it’s built

What’s inside

  1. A warm paper-coloured panel (#f4efe6) with a centred conversation column about 34rem wide, set in a serif face.
  2. The question sits right-aligned in a dark ink bubble (rounded 22px, flatter bottom-right corner). Below it, left-aligned, a round coral avatar with a four-point spark and the assistant's answer as plain text with no bubble.
  3. For about 1.2 seconds three grey dots bounce in a staggered wave. Then the answer streams in word by word (about 38ms per word) with a blinking coral caret at the end.
  4. When finished, numbered source chips rise in one after another, followed by 'Copy' and 'Replay' pill buttons in a sans-serif face. Copy flips to a check and 'Copied' for about 1.6 seconds.

How it behaves

  • On load: dots, then streaming text with a caret, then chips and buttons; the caret and dots disappear when it finishes.
  • Replay restarts the whole sequence from the dots; Copy puts the full answer on the clipboard and shows 'Copied'.
  • Screen readers hear the answer once, when it finishes, not word by word (aria-busy while streaming).
  • With reduced motion enabled the finished answer, chips and buttons show immediately and nothing bounces or blinks.
  • The 'Thinking' and 'Finished' states hold on the dots and on the complete answer respectively.

More from ThatDesignUI

Image gallery lightbox

Image gallery lightbox

ThatDesignUIOriginalMedia component

Notification center

Notification center

ThatDesignUIOriginalNotifications component

Interactive chart card

Interactive chart card

ThatDesignUIOriginalDashboard component

Multi-select combobox

Multi-select combobox

ThatDesignUIOriginalForms component