Imgcli

AI 对话界面

展开提问框

一个“Ask AI”小按钮展开成完整输入框,提示词逐字输入并插入一个引用标签,最后点击发送并泛起波纹。

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

安装

$ npx @imgcli/cli add prompt-expand

一个“Ask AI”小按钮展开成完整输入框,提示词逐字输入并插入一个引用标签,最后点击发送并泛起波纹。

安装

npx @imgcli/cli add prompt-expand

使用

import { PromptExpand } from "@/components/imgcli/prompt-expand";

<PromptExpand />

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

Use <PromptExpand label="Ask imgcli" prompt="Turn" mention="launch-notes.md" promptEnd="into a 30-second film" /> for 138 frames at 30 fps (PROMPT_EXPAND_SECONDS).

参数类型默认值说明
label
string"Ask imgcli"The label on the collapsed pill.
prompt
string"Turn"Typed before the mention.
mention
string"launch-notes.md"A mention chip inserted into the prompt, such as a file or a project.
promptEnd
string"into a 30-second film with captions"Typed after the mention.
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 prompt-expand。CLI 会把组件源码复制到项目的 components/imgcli/ 目录并安装依赖,之后可以直接修改源码。

展开提问框能做什么?

一个“Ask AI”小按钮展开成完整输入框,提示词逐字输入并插入一个引用标签,最后点击发送并泛起波纹。

使用展开提问框前需要准备什么?

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