Skip to content

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

feat: icon chevron up

dev_wandry7ee3e56935a6
diff --git a/components/docs/icons-gallery.tsx b/components/docs/icons-gallery.tsx
index f187e523..57b393aa 100644
--- a/components/docs/icons-gallery.tsx
+++ b/components/docs/icons-gallery.tsx
@@ -17,6 +17,7 @@ import { BellIconStatic } from "@/registry/remocn/icon-bell";
import { CameraIconStatic } from "@/registry/remocn/icon-camera";
import { CheckCircleIconStatic } from "@/registry/remocn/icon-check-circle";
import { CheckIconStatic } from "@/registry/remocn/icon-check";
+import { ChevronUpIconStatic } from "@/registry/remocn/icon-chevron-up";
import { CopyIconStatic } from "@/registry/remocn/icon-copy";
import { DownloadIconStatic } from "@/registry/remocn/icon-download";
import { ExternalLinkIconStatic } from "@/registry/remocn/icon-external-link";
@@ -293,6 +294,12 @@ export const ICONS: IconEntry[] = [
category: "Arrows & navigation",
Static: ExternalLinkIconStatic,
},
+ {
+ name: "icon-chevron-up",
+ label: "Chevron Up",
+ category: "Arrows & navigation",
+ Static: ChevronUpIconStatic,
+ },
];
const CATEGORY_ORDER: IconCategory[] = [
diff --git a/registry/__index__.tsx b/registry/__index__.tsx
index d4803f1d..5642e1fc 100644
--- a/registry/__index__.tsx
+++ b/registry/__index__.tsx
@@ -33,6 +33,7 @@ import { iconBellConfig } from "@/registry/remocn/icon-bell/config";
import { iconCameraConfig } from "@/registry/remocn/icon-camera/config";
import { iconCheckCircleConfig } from "@/registry/remocn/icon-check-circle/config";
import { iconCheckConfig } from "@/registry/remocn/icon-check/config";
+import { iconChevronUpConfig } from "@/registry/remocn/icon-chevron-up/config";
import { iconCopyConfig } from "@/registry/remocn/icon-copy/config";
import { iconDownloadConfig } from "@/registry/remocn/icon-download/config";
import { iconExternalLinkConfig } from "@/registry/remocn/icon-external-link/config";
@@ -650,6 +651,13 @@ const registry: Record<string, RegistryEntry> = {
})),
config: iconCheckConfig,
},
+ "icon-chevron-up": {
+ load: () =>
+ import("@/registry/remocn/icon-chevron-up").then((m) => ({
+ default: m.ChevronUpIcon,
+ })),
+ config: iconChevronUpConfig,
+ },
"icon-copy": {
load: () =>
import("@/registry/remocn/icon-copy").then((m) => ({
diff --git a/registry/remocn/icon-chevron-up/config.ts b/registry/remocn/icon-chevron-up/config.ts
new file mode 100644
index 00000000..621173f8
--- /dev/null
+++ b/registry/remocn/icon-chevron-up/config.ts
@@ -0,0 +1,44 @@
+import { type ComponentConfig, FPS } from "@/lib/customizer-config";
+
+export const iconChevronUpConfig: ComponentConfig = {
+ componentName: "ChevronUpIcon",
+ importPath: "@/components/remocn/icon-chevron-up",
+ 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: 60,
+ fps: FPS,
+ compositionWidth: 48,
+ compositionHeight: 48,
+};
diff --git a/registry/remocn/icon-chevron-up/index.tsx b/registry/remocn/icon-chevron-up/index.tsx
new file mode 100644
index 00000000..c7b31f31
--- /dev/null
+++ b/registry/remocn/icon-chevron-up/index.tsx
@@ -0,0 +1,98 @@
+"use client";
+
+import { Easing, interpolate } from "remotion";
+import {
+ drawnPathProps,
+ type IconAnimationProps,
+ useIconAnimation,
+} from "@/lib/remocn-icons";
+
+const CHEVRON_PATH = "M18 15 12 9 6 15";
+
+const TIMINGS = {
+ drawDurationInFrames: 14,
+ actionDelayInFrames: 2,
+ actionDurationInFrames: 22,
+ loop: false,
+} as const;
+
+export function ChevronUpIcon({
+ animation = "both",
+ loop,
+ speed,
+ size = 48,
+ color = "currentColor",
+ strokeWidth = 2,
+ className,
+}: IconAnimationProps) {
+ const { drawProgress, scaleIn, actionProgress } = useIconAnimation(
+ { animation, loop, speed },
+ TIMINGS,
+ );
+
+ const dash = drawnPathProps(CHEVRON_PATH, drawProgress);
+ const nudge = interpolate(
+ actionProgress,
+ [0, 0.22, 0.45, 0.68, 1],
+ [0, -4, 0, -2, 0],
+ {
+ extrapolateLeft: "clamp",
+ extrapolateRight: "clamp",
+ easing: Easing.inOut(Easing.quad),
+ },
+ );
+ 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: `translateY(${nudge}px) scale(${scale})`,
+ }}
+ >
+ <path
+ d={CHEVRON_PATH}
+ strokeDasharray={dash.strokeDasharray}
+ strokeDashoffset={dash.strokeDashoffset}
+ />
+ </svg>
+ );
+}
+
+export function ChevronUpIconStatic({
+ 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={CHEVRON_PATH} />
+ </svg>
+ );
+}
diff --git a/registry/remocn/registry.json b/registry/remocn/registry.json
index 3b11c353..0d9db6c6 100644
--- a/registry/remocn/registry.json
+++ b/registry/remocn/registry.json
@@ -1849,6 +1849,21 @@
}
]
},
+ {
+ "name": "icon-chevron-up",
+ "type": "registry:component",
+ "title": "Chevron Up",
+ "description": "Animated Lucide chevron-up icon — draws on, then nudges upward with a fading echo.",
+ "dependencies": ["remotion"],
+ "registryDependencies": ["@remocn/icons-core"],
+ "files": [
+ {
+ "path": "icon-chevron-up/index.tsx",
+ "type": "registry:component",
+ "target": "components/remocn/icon-chevron-up.tsx"
+ }
+ ]
+ },
{
"name": "icon-sparkles",
"type": "registry:component",