RetroStreamingText
Text that arrives behind a blinking Mac OS 9 insertion caret, for streamed AI replies.
Installation
npx shadcn@latest add "https://nostalgia-ui.com/r/retro-streaming-text.json"
Setup: installing any component also installs nostalgia-theme (the --os9-* tokens and os9-* utilities) via registryDependencies. To add the theme on its own: npx shadcn@latest add https://nostalgia-ui.com/r/nostalgia-theme.json. Put @layer ui-sdk; above @import "tailwindcss" in your global CSS (why).
Import
import { RetroStreamingText } from "@/components/ui/retro-streaming-text"Usage
import { RetroStreamingText } from "@/components/ui/retro-streaming-text"
// text grows as deltas arrive; streaming stays true until the stream ends
<RetroStreamingText text={text} streaming={status === "streaming"} />Streaming
Press Stream to start a reply.
The network delivers text in lumps; the reveal paces them into steady typing and never falls more than about half a second behind. The caret stays solid while text arrives, blinks when the stream stalls, and fades away when the reply is done. Classic flair and reduced motion show each piece the moment it lands.
Already Complete
Text that was finished when it mounted shows at once, with no caret.