Imgcli

AI Chat Input

Prompt Expand

An Ask AI pill grows into a full composer, a prompt types itself with an inline mention chip, and sends with a ripple off the button.

Make a video
Type
Animation
Duration
4.6s
Category
AI Chat Input
Source
Imgcli

Install

$ npx @imgcli/cli add prompt-expand

An Ask AI pill grows into a full composer, a prompt types itself with an inline mention chip, and sends with a ripple off the button.

Installation

npx @imgcli/cli add prompt-expand

Usage

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

<PromptExpand />

Render at 30 fps for 138 frames (4.6 seconds) with the default props. The preview uses a 960 × 540 canvas.

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).

PropTypeDefaultDescription
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

License

MIT. Free for personal and commercial use. Preserve the copyright and license notice.

Copyright (c) 2026 Ricky (Imgcli) <https://imgcli.com>

Frequently asked questions

How do I add Prompt Expand to a Remotion project?

Run npx @imgcli/cli add prompt-expand in your Remotion project. The CLI copies the editable source into components/imgcli/ under your source root and installs its dependencies.

What is Prompt Expand?

Prompt Expand is a Remotion AI chat composer animation for React. An Ask AI pill grows into a full composer, a prompt types itself with an inline mention chip, and sends with a ripple off the button.

What do I need before using Prompt Expand?

Use Node.js 20.19 or newer and an existing Remotion project. Create one with npx create-video@latest. The component is free and MIT licensed.