Skip to content

Production-ready animations, transitions, backgrounds, and scenes for Remotion

feat: icon terminal

dev_wandry756d711d590a
diff --git a/components/docs/icons-gallery.tsx b/components/docs/icons-gallery.tsx
index 86465b31..e0e6e9d1 100644
--- a/components/docs/icons-gallery.tsx
+++ b/components/docs/icons-gallery.tsx
@@ -70,6 +70,7 @@ import { ShieldIconStatic } from "@/registry/remocn/icon-shield";
import { SkipForwardIconStatic } from "@/registry/remocn/icon-skip-forward";
import { SparklesIconStatic } from "@/registry/remocn/icon-sparkles";
import { StarIconStatic } from "@/registry/remocn/icon-star";
+import { TerminalIconStatic } from "@/registry/remocn/icon-terminal";
import { ThumbsUpIconStatic } from "@/registry/remocn/icon-thumbs-up";
import { TimerIconStatic } from "@/registry/remocn/icon-timer";
import { ZapIconStatic } from "@/registry/remocn/icon-zap";
@@ -217,6 +218,12 @@ export const ICONS: IconEntry[] = [
category: "Files & dev",
Static: CodeIconStatic,
},
+ {
+ name: "icon-terminal",
+ label: "Terminal",
+ category: "Files & dev",
+ Static: TerminalIconStatic,
+ },
{
name: "icon-search",
label: "Search",
diff --git a/registry/__index__.tsx b/registry/__index__.tsx
index 70a1fdf9..b33d46cd 100644
--- a/registry/__index__.tsx
+++ b/registry/__index__.tsx
@@ -86,6 +86,7 @@ import { iconShieldConfig } from "@/registry/remocn/icon-shield/config";
import { iconSkipForwardConfig } from "@/registry/remocn/icon-skip-forward/config";
import { iconSparklesConfig } from "@/registry/remocn/icon-sparkles/config";
import { iconStarConfig } from "@/registry/remocn/icon-star/config";
+import { iconTerminalConfig } from "@/registry/remocn/icon-terminal/config";
import { iconThumbsUpConfig } from "@/registry/remocn/icon-thumbs-up/config";
import { iconTimerConfig } from "@/registry/remocn/icon-timer/config";
import { iconTrashConfig } from "@/registry/remocn/icon-trash/config";
@@ -1059,6 +1060,13 @@ const registry: Record<string, RegistryEntry> = {
})),
config: iconStarConfig,
},
+ "icon-terminal": {
+ load: () =>
+ import("@/registry/remocn/icon-terminal").then((m) => ({
+ default: m.TerminalIcon,
+ })),
+ config: iconTerminalConfig,
+ },
"icon-thumbs-up": {
load: () =>
import("@/registry/remocn/icon-thumbs-up").then((m) => ({
diff --git a/registry/remocn/icon-terminal/config.ts b/registry/remocn/icon-terminal/config.ts
new file mode 100644
index 00000000..071ee491
--- /dev/null
+++ b/registry/remocn/icon-terminal/config.ts
@@ -0,0 +1,44 @@
+import { type ComponentConfig, FPS } from "@/lib/customizer-config";
+
+export const iconTerminalConfig: ComponentConfig = {
+ componentName: "TerminalIcon",
+ importPath: "@/components/remocn/icon-terminal",
+ controls: {
+ animation: {
+ type: "select",
+ default: "both",
+ options: ["draw", "action", "both"],
+ label: "Animation",
+ },
+ loop: {
+ type: "boolean",
+ default: false,
+ label: "Loop",
+ },
+ size: {
+ type: "number",
+ default: 48,
+ min: 24,
+ max: 200,
+ step: 4,
+ label: "Size",
+ },
+ color: {
+ type: "color",
+ default: "#171717",
+ label: "Color",
+ },
+ strokeWidth: {
+ type: "number",
+ default: 2,
+ min: 1,
+ max: 3,
+ step: 0.25,
+ label: "Stroke width",
+ },
+ },
+ durationInFrames: 75,
+ fps: FPS,
+ compositionWidth: 48,
+ compositionHeight: 48,
+};
diff --git a/registry/remocn/icon-terminal/index.tsx b/registry/remocn/icon-terminal/index.tsx
new file mode 100644
index 00000000..c6f63900
--- /dev/null
+++ b/registry/remocn/icon-terminal/index.tsx
@@ -0,0 +1,128 @@
+"use client";
+
+import { Easing, interpolate } from "remotion";
+import {
+ drawnPathProps,
+ type IconAnimationProps,
+ useIconAnimation,
+} from "@/lib/remocn-icons";
+
+const CHEVRON_PATH = "M4 17 10 11 4 5";
+const CURSOR_PATH = "M12 19H20";
+
+const TIMINGS = {
+ drawDurationInFrames: 14,
+ actionDelayInFrames: 2,
+ actionDurationInFrames: 32,
+ loop: false,
+} as const;
+
+export function TerminalIcon({
+ animation = "both",
+ loop,
+ speed,
+ size = 48,
+ color = "currentColor",
+ strokeWidth = 2,
+ className,
+}: IconAnimationProps) {
+ const { drawProgress, scaleIn, actionProgress, actionFrame } =
+ useIconAnimation({ animation, loop, speed }, TIMINGS);
+
+ const linearDraw = 1 - (1 - drawProgress) ** (1 / 3);
+ const acting = animation !== "draw" && actionFrame >= 0;
+
+ const chevronDraw = interpolate(linearDraw, [0, 0.7], [0, 1], {
+ extrapolateLeft: "clamp",
+ extrapolateRight: "clamp",
+ easing: Easing.out(Easing.quad),
+ });
+ const cursorDraw = interpolate(linearDraw, [0.55, 1], [0, 1], {
+ extrapolateLeft: "clamp",
+ extrapolateRight: "clamp",
+ easing: Easing.out(Easing.quad),
+ });
+
+ const nudge = acting
+ ? interpolate(actionProgress, [0, 0.15, 0.35], [0, 2, 0], {
+ extrapolateLeft: "clamp",
+ extrapolateRight: "clamp",
+ easing: Easing.inOut(Easing.quad),
+ })
+ : 0;
+ const cursorOpacity = acting
+ ? interpolate(
+ actionProgress,
+ [0.3, 0.42, 0.54, 0.66, 0.78],
+ [1, 0, 1, 0, 1],
+ { extrapolateLeft: "clamp", extrapolateRight: "clamp" },
+ )
+ : 1;
+
+ const chevron = drawnPathProps(CHEVRON_PATH, acting ? 1 : chevronDraw);
+ const cursor = drawnPathProps(CURSOR_PATH, acting ? 1 : cursorDraw);
+
+ const scale = 0.85 + 0.15 * scaleIn;
+
+ return (
+ <svg
+ className={className}
+ width={size}
+ height={size}
+ viewBox="0 0 24 24"
+ fill="none"
+ stroke={color}
+ strokeWidth={strokeWidth}
+ strokeLinecap="round"
+ strokeLinejoin="round"
+ style={{
+ overflow: "visible",
+ transformOrigin: "center",
+ transform: `scale(${scale})`,
+ }}
+ >
+ <g transform={`translate(${nudge} 0)`}>
+ <path
+ d={CHEVRON_PATH}
+ strokeDasharray={chevron.strokeDasharray}
+ strokeDashoffset={chevron.strokeDashoffset}
+ />
+ </g>
+ <path
+ d={CURSOR_PATH}
+ strokeDasharray={cursor.strokeDasharray}
+ strokeDashoffset={cursor.strokeDashoffset}
+ opacity={cursorOpacity}
+ />
+ </svg>
+ );
+}
+
+export function TerminalIconStatic({
+ size = 48,
+ color = "currentColor",
+ strokeWidth = 2,
+ className,
+}: {
+ size?: number;
+ color?: string;
+ strokeWidth?: number;
+ className?: string;
+}) {
+ return (
+ <svg
+ className={className}
+ width={size}
+ height={size}
+ viewBox="0 0 24 24"
+ fill="none"
+ stroke={color}
+ strokeWidth={strokeWidth}
+ strokeLinecap="round"
+ strokeLinejoin="round"
+ >
+ <path d="M12 19h8" />
+ <path d="m4 17 6-6-6-6" />
+ </svg>
+ );
+}
diff --git a/registry/remocn/registry.json b/registry/remocn/registry.json
index 6bbd3855..bb79c883 100644
--- a/registry/remocn/registry.json
+++ b/registry/remocn/registry.json
@@ -2374,6 +2374,21 @@
}
]
},
+ {
+ "name": "icon-terminal",
+ "type": "registry:component",
+ "title": "Terminal",
+ "description": "Animated Lucide terminal icon — draws on, then the prompt nudges forward and the cursor blinks twice.",
+ "dependencies": ["remotion"],
+ "registryDependencies": ["@remocn/icons-core"],
+ "files": [
+ {
+ "path": "icon-terminal/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/icon-terminal.tsx"
+ }
+ ]
+ },
{
"name": "icon-user",
"type": "registry:component",