屏幕与设备
填写简报
填写一份简报:指针在各个输入框中打字,选择时长和风格,然后提交,按钮变为完成提示。控件只改变填充和边框,表单不会跳动。
安装
npx @imgcli/cli add brief-form使用
import { BriefForm } from "@/components/imgcli/brief-form";
<BriefForm />默认参数下以 30 fps 渲染 168 帧(5.6 秒),预览画布为 960 × 540。
Use <BriefForm product="Acme Notes" audience="Product designers" length={1} tone={0} /> for 168 frames at 30 fps (BRIEF_FORM_SECONDS).
| 参数 | 类型 | 默认值 | 说明 |
|---|---|---|---|
title | string | "New video brief" | |
product | string | "Acme Notes" | |
audience | string | "Product designers" | |
lengths | readonly string[] | ["15 s", "30 s", "60 s"] | |
length | number | 1 | Index into `lengths`. |
tones | readonly string[] | ["Calm", "Bold", "Playful"] | |
tone | number | 0 | Index into `tones`. |
submitLabel | string | "Create brief" | |
doneLabel | string | "Brief ready" | |
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 brief-form。CLI 会把组件源码复制到项目的 components/imgcli/ 目录并安装依赖,之后可以直接修改源码。
填写简报能做什么?
填写一份简报:指针在各个输入框中打字,选择时长和风格,然后提交,按钮变为完成提示。控件只改变填充和边框,表单不会跳动。
使用填写简报前需要准备什么?
准备 Node.js 20.19 或更高版本,以及一个 Remotion 项目。新项目可以用 npx create-video@latest 创建。免费组件采用 MIT 许可证。