AI 对话界面
手机键盘输入
在手机上打字:键盘升起,提示词逐键输入,每个按键亮起并弹出放大预览,最后作为消息气泡发出。
安装
npx @imgcli/cli add mobile-keyboard使用
import { MobileKeyboard } from "@/components/imgcli/mobile-keyboard";
<MobileKeyboard
prompt="remind me to call Alex tomorrow"
appName="Reminders"
headline="A thought. A reminder."
/>;默认示例:在手机上输入并发送明天给 Alex 打电话的提醒。以 30 fps 渲染 138 帧(4.6 秒)。
| 参数 | 类型 | 默认值 | 说明 |
|---|---|---|---|
prompt | string | "remind me to call Alex tomorrow" | Typed key by key; letters and spaces map onto the keyboard. |
appName | string | "Reminders" | |
headline | string | "A thought. A reminder." | A line beside the phone. Empty to centre the phone alone. |
fontFamily | string | — | A face from the Imgcli font list, or any loaded CSS font stack. |
accentColor | string | — | |
bezelColor | string | — | The phone's body colour. |
theme | Partial<ImgcliTheme> | — | |
mode | "light" | "dark" | — | |
speed | number | 1 |
许可
MIT 许可,可免费用于个人及商业项目,保留版权和许可声明。
Copyright (c) 2026 Ricky (Imgcli) <https://imgcli.com>
常见问题
如何在 Remotion 项目中使用手机键盘输入?
运行 npx @imgcli/cli add mobile-keyboard。CLI 会把组件源码复制到项目的 components/imgcli/ 目录并安装依赖,之后可以直接修改源码。
手机键盘输入能做什么?
在手机上打字:键盘升起,提示词逐键输入,每个按键亮起并弹出放大预览,最后作为消息气泡发出。
使用手机键盘输入前需要准备什么?
准备 Node.js 20.19 或更高版本,以及一个 Remotion 项目。新项目可以用 npx create-video@latest 创建。免费组件采用 MIT 许可证。