Streaming Cursor

Blinking caret that sits inline at the end of streaming text, sized to the line and hidden from screen readers. Signals an AI response is still arriving.

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

Installation#

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

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-cursor.json

Usage#

tsx
import { StreamingCursor } from "@/components/ui/streaming-cursor"

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

API reference#

StreamingCursor props
PropTypeDefault
classNamestring-
All AI chat UI components for React