Production-ready animations, transitions, backgrounds, and scenes for Remotion
TypeScript ai-agentsclaude-codedemo-videomcpmcp-servermodel-context-protocolmotion-designproduct-demoreactremotionshadcnvideo
feat: icon chevron right
dev_wandryedbcf3254afb
diff --git a/components/docs/icons-gallery.tsx b/components/docs/icons-gallery.tsxindex 90c2565e..34c2eb39 100644--- a/components/docs/icons-gallery.tsx+++ b/components/docs/icons-gallery.tsx@@ -19,6 +19,7 @@ import { CheckCircleIconStatic } from "@/registry/remocn/icon-check-circle";import { CheckIconStatic } from "@/registry/remocn/icon-check";import { ChevronDownIconStatic } from "@/registry/remocn/icon-chevron-down";import { ChevronLeftIconStatic } from "@/registry/remocn/icon-chevron-left";+import { ChevronRightIconStatic } from "@/registry/remocn/icon-chevron-right";import { ChevronUpIconStatic } from "@/registry/remocn/icon-chevron-up";import { CopyIconStatic } from "@/registry/remocn/icon-copy";import { DownloadIconStatic } from "@/registry/remocn/icon-download";@@ -314,6 +315,12 @@ export const ICONS: IconEntry[] = [category: "Arrows & navigation",Static: ChevronLeftIconStatic,},+ {+ name: "icon-chevron-right",+ label: "Chevron Right",+ category: "Arrows & navigation",+ Static: ChevronRightIconStatic,+ },];const CATEGORY_ORDER: IconCategory[] = [diff --git a/registry/__index__.tsx b/registry/__index__.tsxindex 7828db47..ebddd193 100644--- a/registry/__index__.tsx+++ b/registry/__index__.tsx@@ -35,6 +35,7 @@ import { iconCheckCircleConfig } from "@/registry/remocn/icon-check-circle/confiimport { iconCheckConfig } from "@/registry/remocn/icon-check/config";import { iconChevronDownConfig } from "@/registry/remocn/icon-chevron-down/config";import { iconChevronLeftConfig } from "@/registry/remocn/icon-chevron-left/config";+import { iconChevronRightConfig } from "@/registry/remocn/icon-chevron-right/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";@@ -667,6 +668,13 @@ const registry: Record<string, RegistryEntry> = {})),config: iconChevronLeftConfig,},+ "icon-chevron-right": {+ load: () =>+ import("@/registry/remocn/icon-chevron-right").then((m) => ({+ default: m.ChevronRightIcon,+ })),+ config: iconChevronRightConfig,+ },"icon-chevron-up": {load: () =>import("@/registry/remocn/icon-chevron-up").then((m) => ({diff --git a/registry/remocn/icon-chevron-right/config.ts b/registry/remocn/icon-chevron-right/config.tsnew file mode 100644index 00000000..6a80daad--- /dev/null+++ b/registry/remocn/icon-chevron-right/config.ts@@ -0,0 +1,44 @@+import { type ComponentConfig, FPS } from "@/lib/customizer-config";++export const iconChevronRightConfig: ComponentConfig = {+ componentName: "ChevronRightIcon",+ importPath: "@/components/remocn/icon-chevron-right",+ 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-right/index.tsx b/registry/remocn/icon-chevron-right/index.tsxnew file mode 100644index 00000000..c147f0a9--- /dev/null+++ b/registry/remocn/icon-chevron-right/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 = "M9 18 15 12 9 6";++const TIMINGS = {+ drawDurationInFrames: 14,+ actionDelayInFrames: 2,+ actionDurationInFrames: 22,+ loop: false,+} as const;++export function ChevronRightIcon({+ 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: `translateX(${nudge}px) scale(${scale})`,+ }}+ >+ <path+ d={CHEVRON_PATH}+ strokeDasharray={dash.strokeDasharray}+ strokeDashoffset={dash.strokeDashoffset}+ />+ </svg>+ );+}++export function ChevronRightIconStatic({+ 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.jsonindex 53e19422..f8d25cf8 100644--- a/registry/remocn/registry.json+++ b/registry/remocn/registry.json@@ -1894,6 +1894,21 @@}]},+ {+ "name": "icon-chevron-right",+ "type": "registry:component",+ "title": "Chevron Right",+ "description": "Animated Lucide chevron-right icon — draws on, then nudges right with a fading echo.",+ "dependencies": ["remotion"],+ "registryDependencies": ["@remocn/icons-core"],+ "files": [+ {+ "path": "icon-chevron-right/index.tsx",+ "type": "registry:component",+ "target": "components/remocn/icon-chevron-right.tsx"+ }+ ]+ },{"name": "icon-sparkles","type": "registry:component",