Menu

Streamdown 2.2 - animated streaming and better support for custom HTML - Vercel
📰
0

Streamdown 2.2 - animated streaming and better support for custom HTML - Vercel

Vercel News·Hayden Bleasel·4 days ago
#wd7iZ9Vo
Reading 0:00
15s threshold

Streamdown 2.2 delivers animated per-word text streaming, improved custom HTML handling, and drop-in compatibility with ReactMarkdown - making it easier to adopt Streamdown in existing projects. Link to heading Animated streaming By importing the Streamdown stylesheet and enabling the new animated prop, streaming content renders with smooth per-word text animation. This provides a polished experience for AI chat interfaces and other real-time text applications. import { Streamdown } from "streamdown" ; import "streamdown/styles.css" ; export default function Page ( ) { return ( < Streamdown animated isAnimating = { status === "streaming" } > { markdown } </ Streamdown > ) ; } Link to heading Better custom HTML support The components prop now accepts custom HTML attributes by adding elements to allowedTags. The Remend engine has also been improved to strip incomplete HTML tags during streaming, preventing visual glitches from partial markup.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More