About
A set of pure-CSS text primitives for animating AI chat responses as they stream in — a blinking cursor, fade-in words/lines, and a shimmering skeleton loader.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Streaming Text to your project and fits it to your theme.
Code
How Streaming Text is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import {
StreamingText,
StreamingTextLine,
StreamingTextSkeleton,
StreamingTextSkeletonLine,
} from "@/components/ui/streaming-text";
export default function StreamingTextDemo() {
return (
<div className="flex flex-col gap-6 w-full max-w-lg">
<div>
<p className="text-xs text-muted-foreground mb-2">
Streaming with cursor
</p>
<StreamingText>
<StreamingTextLine style={{ animationDelay: "0s" }}>
CSS cascade layers give you more control over specificity.
</StreamingTextLine>
<StreamingTextLine style={{ animationDelay: "0.2s" }}>
They allow you to define explicit layers of specificity.
</StreamingTextLine>
</StreamingText>
</div>
<div>
<p className="text-xs text-muted-foreground mb-2">Loading skeleton</p>
<StreamingTextSkeleton>
<StreamingTextSkeletonLine />
<StreamingTextSkeletonLine />
<StreamingTextSkeletonLine />
</StreamingTextSkeleton>
</div>
</div>
);
}
















