RemotionUI

Chat To Preview

The prompt-to-render loop: ask typed and sent, answer streamed, preview assembled.

SceneScenesAdvanced

chat-to-preview30fps · 960×540
Install
$ npx remotion-ui@latest add chat-to-preview

The ask types itself into the composer under a caret and flies up into the thread on send; the assistant thinks, then streams its answer word by word; and the preview surface assembles alongside it — status moving Idle → Rendering → Ready, wireframe blocks landing in order, then resolving into the rendered scene under a single sheen.

messages drives the whole clock: user turns type and send, assistant turns stream, and the timing is derived from the text rather than from fixed frames.

Agent notes

Install first, then import the copied source component locally. AI guide →

Import
@/remotion/scenes/chat-to-preview
  • Use when: full-frame scenes, overlays, cards, and reusable video sections.
  • Customize: messages, previewTitle, previewCaption, previewLabel, plus copied source for timing, layout, colors, and typography.
  • Rule: do not import this component from the remotion-ui npm package; it is copied into your project.

Usage

Example
import { ChatToPreview } from "@/remotion/scenes/chat-to-preview"; <ChatToPreview messages={messages} previewTitle="Ship the scene" />

API Reference

PropTypeDescription
messagesChatMessage[]The exchange, in order. User turns type and send; assistant turns stream. Drives the whole clock.
previewTitlestringTitle the finished preview renders.
previewCaptionstringSupporting line under the preview title.
previewLabelstringName of the preview surface in its header.
placeholderstringComposer placeholder before anything is typed.
accentColorstringAssistant bubble, status, and render tint.
backgroundColorstringOverrides the page background.
theme"dark" | "light"Surface palette.
speednumberAnimation speed multiplier.

Related