AI 对话界面
清单进度
任务逐项完成清单:每项转圈后打勾,进度条和百分比随之推进,完成后标题右侧变为完成标签。
安装
npx @imgcli/cli add checklist-run使用
import { ChecklistRun } from "@/components/imgcli/checklist-run";
<ChecklistRun
title="Deploying to production"
items={[
"Checking types",
"Running unit tests",
"Building the app",
"Uploading assets",
"Verifying health"
]}
doneLabel="Deployment complete"
/>;默认示例:依次完成类型检查、测试、构建、资源上传和健康检查,展示应用部署流程。以 30 fps 渲染 138 帧(4.6 秒)。
| 参数 | 类型 | 默认值 | 说明 |
|---|---|---|---|
title | string | "Deploying to production" | |
items | readonly string[] | 见使用示例 | |
itemSeconds | number | 0.6 | Seconds each item takes. |
doneLabel | string | "Deployment complete" | |
fontFamily | string | — | A face from the Imgcli font list, or any loaded CSS font stack. |
accentColor | string | — | |
theme | Partial<ImgcliTheme> | — | |
mode | "light" | "dark" | — | |
speed | number | 1 |
许可
MIT 许可,可免费用于个人及商业项目,保留版权和许可声明。
Copyright (c) 2026 Ricky (Imgcli) <https://imgcli.com>
常见问题
如何在 Remotion 项目中使用清单进度?
运行 npx @imgcli/cli add checklist-run。CLI 会把组件源码复制到项目的 components/imgcli/ 目录并安装依赖,之后可以直接修改源码。
清单进度能做什么?
任务逐项完成清单:每项转圈后打勾,进度条和百分比随之推进,完成后标题右侧变为完成标签。
使用清单进度前需要准备什么?
准备 Node.js 20.19 或更高版本,以及一个 Remotion 项目。新项目可以用 npx create-video@latest 创建。免费组件采用 MIT 许可证。