Imgcli

AI 对话界面

对话回复

一段简短对话:消息输入后作为气泡发出,对方显示输入中,回复逐词流式出现。

制作视频
类型
动画
时长
5.0s
分类
AI 对话界面
来源
Imgcli

安装

$ npx @imgcli/cli add chat-reply

一段简短对话:消息输入后作为气泡发出,对方显示输入中,回复逐词流式出现。

安装

npx @imgcli/cli add chat-reply

使用

import { ChatReply } from "@/components/imgcli/chat-reply";

<ChatReply />

默认参数下以 30 fps 渲染 150 帧(5 秒),预览画布为 960 × 540。

Use <ChatReply message="Make a 20-second demo of the new dashboard" reply="On it." assistantName="imgcli" /> for 150 frames at 30 fps (CHAT_REPLY_SECONDS).

参数类型默认值说明
message
string"Make a 20-second demo of the new dashboard"The user's message.
reply
string"On it. Three scenes: the overview, the new filters, and the export. First cut in about a minute."The assistant's reply, streamed in word by word.
assistantName
string"imgcli"
fontFamily
string—A face from the Imgcli font list, or any loaded CSS font stack.
accentColor
string—
theme
Partial<ImgcliTheme>—
mode
"light" | "dark"—
speed
number1

许可

MIT 许可,可免费用于个人及商业项目,保留版权和许可声明。

Copyright (c) 2026 Ricky (Imgcli) <https://imgcli.com>

常见问题

如何在 Remotion 项目中使用对话回复?

运行 npx @imgcli/cli add chat-reply。CLI 会把组件源码复制到项目的 components/imgcli/ 目录并安装依赖,之后可以直接修改源码。

对话回复能做什么?

一段简短对话:消息输入后作为气泡发出,对方显示输入中,回复逐词流式出现。

使用对话回复前需要准备什么?

准备 Node.js 20.19 或更高版本,以及一个 Remotion 项目。新项目可以用 npx create-video@latest 创建。免费组件采用 MIT 许可证。