Production-ready animations, transitions, backgrounds, and scenes for Remotion
TypeScript ai-agentsclaude-codedemo-videomcpmcp-servermodel-context-protocolmotion-designproduct-demoreactremotionshadcnvideo
feat: icons icon
dev_wandry9a1552b66fc2
diff --git a/components/docs/icons-gallery.tsx b/components/docs/icons-gallery.tsxindex 99079fd0..f52d25e1 100644--- a/components/docs/icons-gallery.tsx+++ b/components/docs/icons-gallery.tsx@@ -10,6 +10,7 @@ import registry, { type RegistryEntry } from "@/registry/__index__";import { AlertTriangleIconStatic } from "@/registry/remocn/icon-alert-triangle";import { CheckCircleIconStatic } from "@/registry/remocn/icon-check-circle";import { CheckIconStatic } from "@/registry/remocn/icon-check";+import { InfoIconStatic } from "@/registry/remocn/icon-info";import { XIconStatic } from "@/registry/remocn/icon-x";export type IconCategory =@@ -54,6 +55,12 @@ export const ICONS: IconEntry[] = [category: "Status & feedback",Static: AlertTriangleIconStatic,},+ {+ name: "icon-info",+ label: "Info",+ category: "Status & feedback",+ Static: InfoIconStatic,+ },];const CATEGORY_ORDER: IconCategory[] = [diff --git a/registry/__index__.tsx b/registry/__index__.tsxindex 929208f6..a21b5a7b 100644--- a/registry/__index__.tsx+++ b/registry/__index__.tsx@@ -27,6 +27,7 @@ import { grainDissolveConfig } from "@/registry/remocn/grain-dissolve/config";import { iconAlertTriangleConfig } from "@/registry/remocn/icon-alert-triangle/config";import { iconCheckCircleConfig } from "@/registry/remocn/icon-check-circle/config";import { iconCheckConfig } from "@/registry/remocn/icon-check/config";+import { iconInfoConfig } from "@/registry/remocn/icon-info/config";import { iconXConfig } from "@/registry/remocn/icon-x/config";import { infiniteBentoPanConfig } from "@/registry/remocn/infinite-bento-pan/config";import { infiniteMarqueeConfig } from "@/registry/remocn/infinite-marquee/config";@@ -575,6 +576,13 @@ const registry: Record<string, RegistryEntry> = {})),config: iconCheckConfig,},+ "icon-info": {+ load: () =>+ import("@/registry/remocn/icon-info").then((m) => ({+ default: m.InfoIcon,+ })),+ config: iconInfoConfig,+ },"icon-check-circle": {load: () =>import("@/registry/remocn/icon-check-circle").then((m) => ({diff --git a/registry/remocn/icon-info/config.ts b/registry/remocn/icon-info/config.tsnew file mode 100644index 00000000..46e4d36b--- /dev/null+++ b/registry/remocn/icon-info/config.ts@@ -0,0 +1,44 @@+import { type ComponentConfig, FPS } from "@/lib/customizer-config";++export const iconInfoConfig: ComponentConfig = {+ componentName: "InfoIcon",+ importPath: "@/components/remocn/icon-info",+ 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-info/index.tsx b/registry/remocn/icon-info/index.tsxnew file mode 100644index 00000000..133fd430--- /dev/null+++ b/registry/remocn/icon-info/index.tsx@@ -0,0 +1,129 @@+"use client";++import { Easing, interpolate } from "remotion";+import {+ drawnPathProps,+ type IconAnimationProps,+ useIconAnimation,+} from "@/lib/remocn-icons";++const CIRCLE_PATH =+ "M12 2 A10 10 0 0 1 22 12 A10 10 0 0 1 12 22 A10 10 0 0 1 2 12 A10 10 0 0 1 12 2";+const STEM_PATH = "M12 12v4";+const DOT_PATH = "M12 8h.01";++const TIMINGS = {+ drawDurationInFrames: 20,+ actionDelayInFrames: 2,+ actionDurationInFrames: 16,+ loop: false,+} as const;++export function InfoIcon({+ animation = "both",+ loop,+ speed,+ size = 48,+ color = "currentColor",+ strokeWidth = 2,+ className,+}: IconAnimationProps) {+ const { drawProgress, scaleIn, actionProgress } = useIconAnimation(+ { animation, loop, speed },+ TIMINGS,+ );++ const linearDraw = 1 - (1 - drawProgress) ** (1 / 3);++ const circleProgress = interpolate(linearDraw, [0, 0.7], [0, 1], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ easing: Easing.inOut(Easing.quad),+ });+ const stemProgress = interpolate(linearDraw, [0.7, 1], [0, 1], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ easing: Easing.out(Easing.quad),+ });+ const dotPop = interpolate(linearDraw, [0.5, 0.65], [0, 1], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ easing: Easing.out(Easing.back(1.8)),+ });++ const circle = drawnPathProps(CIRCLE_PATH, circleProgress);+ const stem = drawnPathProps(STEM_PATH, stemProgress);++ const bob = interpolate(actionProgress, [0, 0.5, 1], [0, -2, 0], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ easing: Easing.inOut(Easing.sin),+ });++ 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})`,+ }}+ >+ <path+ d={CIRCLE_PATH}+ strokeDasharray={circle.strokeDasharray}+ strokeDashoffset={circle.strokeDashoffset}+ />+ <path+ d={STEM_PATH}+ strokeDasharray={stem.strokeDasharray}+ strokeDashoffset={stem.strokeDashoffset}+ />+ <g+ transform={`translate(0 ${bob}) translate(12 8) scale(${dotPop}) translate(-12 -8)`}+ >+ <path d={DOT_PATH} />+ </g>+ </svg>+ );+}++export function InfoIconStatic({+ 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"+ >+ <circle cx="12" cy="12" r="10" />+ <path d="M12 16v-4" />+ <path d={DOT_PATH} />+ </svg>+ );+}diff --git a/registry/remocn/registry.json b/registry/remocn/registry.jsonindex 62a12add..d5bb2972 100644--- a/registry/remocn/registry.json+++ b/registry/remocn/registry.json@@ -1398,6 +1398,21 @@"target": "components/remocn/icon-alert-triangle.tsx"}]+ },+ {+ "name": "icon-info",+ "type": "registry:component",+ "title": "Info",+ "description": "Animated Lucide info icon — the ring draws clockwise, the dot pops and stem draws in, then the dot bobs to draw a gentle, neutral note.",+ "dependencies": ["remotion"],+ "registryDependencies": ["@remocn/icons-core"],+ "files": [+ {+ "path": "icon-info/index.tsx",+ "type": "registry:component",+ "target": "components/remocn/icon-info.tsx"+ }+ ]}]}