Imgcli

AI 对话界面

提示生成结果

从请求到选项:提示词输入并发送,结果卡片先显示闪动的占位,再逐个变成图片,被选中的一张出现选中框和对勾。

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

安装

$ npx @imgcli/cli add prompt-grid

从请求到选项:提示词输入并发送,结果卡片先显示闪动的占位,再逐个变成图片,被选中的一张出现选中框和对勾。

安装

npx @imgcli/cli add prompt-grid

使用

import { PromptGrid } from "@/components/imgcli/prompt-grid";

<PromptGrid
  prompt="Three layouts for a design library"
/>;

默认示例:为设计资源库生成三个布局选项,并选中其中一个。以 30 fps 渲染 138 帧(4.6 秒)。

参数类型默认值说明
prompt
string"Three layouts for a design library"
results
readonly string[][resultHome, resultGallery, resultComponent]16:10 images the request resolves into.
choose
number1Which result gets chosen. Omit for none.
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-grid。CLI 会把组件源码复制到项目的 components/imgcli/ 目录并安装依赖,之后可以直接修改源码。

提示生成结果能做什么?

从请求到选项:提示词输入并发送,结果卡片先显示闪动的占位,再逐个变成图片,被选中的一张出现选中框和对勾。

使用提示生成结果前需要准备什么?

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