Streaming Message

Chat message bubble that renders partial AI output with a blinking caret at the end, for showing token-by-token streaming responses in a Tailwind chat UI.

src/registry/ui/streaming-message.tsx/r/streaming-message.json

Installation#

bash
npx shadcn@latest add @minidev/streaming-message

MiniDev UI is in the shadcn registry directory, so the short form works with no setup. Older CLI versions can use the full URL: npx shadcn@latest add https://ui.minidev.pro/r/streaming-message.json

Usage#

tsx
import { StreamingMessage } from "@/components/ui/streaming-message"

export function Example() {
  return <StreamingMessage />
}

API reference#

StreamingMessage props
PropTypeDefault
contentstring"Raising the Premium bar with a livin...
classNamestring-

Dependencies#

npm

React only
All AI chat UI components for React

Learn more