Pick the adapter that matches your UI, install it, and pass the Markdown accumulated so far. Styles load with the package. You do not need Tailwind CSS.
Install and render
Close the stream
receiving tells Smoothstream whether the snapshot may still change shape. It is not an animation on/off switch.
Set receiving to true while tokens arrive
Incomplete emphasis, links, list items, and code lines stay withheld until they are safe. The default is false, so omit this flag only when the Markdown is already complete.
Set receiving to false when the model is done
Smoothstream flushes the remaining safe content and finishes the scheduled reveal. Keep the same instance mounted so queued presentation can complete.
Start a new instance for the next response
Markdown is append-only for the life of a component or controller. Remount with a new React or Vue key, or call createSmoothstream again, when the user starts a different answer.
You can also pass an already-complete Markdown string with receiving omitted. Streaming mode will play it through the reveal schedule. Use mode="static" when complete content should appear immediately.
For a working request example with cancellation and errors, continue to Streaming a response. If a table or unfinished word waits before appearing, see Markdown behavior.