Imgcli

AI Chat Input

Code Edit

Code that turns into a picture: a component's usage types into an editor coloured from the theme's tokens, and when the last line lands the preview pane plays the result.

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

Install

$ npx @imgcli/cli add code-edit

Code that turns into a picture: a component's usage types into an editor coloured from the theme's tokens, and when the last line lands the preview pane plays the result.

Installation

npx @imgcli/cli add code-edit

Usage

import { CodeEdit } from "@/components/imgcli/code-edit";

<CodeEdit />

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

Use <CodeEdit fileName="opening.tsx" code={snippet} previewText="the video." /> for 150 frames at 30 fps (CODE_EDIT_SECONDS). perChar sets the typing speed; the code uses Geist Mono.

PropTypeDefaultDescription
fileName
string"opening.tsx"
code
stringDEFAULT_CODE
previewText
string"the video."Shown in the preview pane once the code is written.
perChar
number0.014Seconds per character while typing.
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 Code Edit to a Remotion project?

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

What is Code Edit?

Code Edit is a Remotion code typing animation for React. Code that turns into a picture: a component's usage types into an editor coloured from the theme's tokens, and when the last line lands the preview pane plays the result.

What do I need before using Code Edit?

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.