Production-ready animations, transitions, backgrounds, and scenes for Remotion
TypeScript ai-agentsclaude-codedemo-videomcpmcp-servermodel-context-protocolmotion-designproduct-demoreactremotionshadcnvideo
feat: icon phone
dev_wandry3602148d969d
diff --git a/components/docs/icons-gallery.tsx b/components/docs/icons-gallery.tsxindex 22b360bd..0cd83856 100644--- a/components/docs/icons-gallery.tsx+++ b/components/docs/icons-gallery.tsx@@ -47,6 +47,7 @@ import { MoreHorizontalIconStatic } from "@/registry/remocn/icon-more-horizontalimport { PartyPopperIconStatic } from "@/registry/remocn/icon-party-popper";import { PauseIconStatic } from "@/registry/remocn/icon-pause";import { PencilIconStatic } from "@/registry/remocn/icon-pencil";+import { PhoneIconStatic } from "@/registry/remocn/icon-phone";import { PlayIconStatic } from "@/registry/remocn/icon-play";import { PlusIconStatic } from "@/registry/remocn/icon-plus";import { RefreshCwIconStatic } from "@/registry/remocn/icon-refresh-cw";@@ -365,6 +366,12 @@ export const ICONS: IconEntry[] = [category: "People & communication",Static: MessageCircleIconStatic,},+ {+ name: "icon-phone",+ label: "Phone",+ category: "People & communication",+ Static: PhoneIconStatic,+ },{name: "icon-heart",label: "Heart",diff --git a/registry/__index__.tsx b/registry/__index__.tsxindex 98efae44..3c7fba47 100644--- a/registry/__index__.tsx+++ b/registry/__index__.tsx@@ -63,6 +63,7 @@ import { iconMoreHorizontalConfig } from "@/registry/remocn/icon-more-horizontalimport { iconPartyPopperConfig } from "@/registry/remocn/icon-party-popper/config";import { iconPauseConfig } from "@/registry/remocn/icon-pause/config";import { iconPencilConfig } from "@/registry/remocn/icon-pencil/config";+import { iconPhoneConfig } from "@/registry/remocn/icon-phone/config";import { iconPlayConfig } from "@/registry/remocn/icon-play/config";import { iconPlusConfig } from "@/registry/remocn/icon-plus/config";import { iconRefreshCwConfig } from "@/registry/remocn/icon-refresh-cw/config";@@ -884,6 +885,13 @@ const registry: Record<string, RegistryEntry> = {})),config: iconPencilConfig,},+ "icon-phone": {+ load: () =>+ import("@/registry/remocn/icon-phone").then((m) => ({+ default: m.PhoneIcon,+ })),+ config: iconPhoneConfig,+ },"icon-play": {load: () =>import("@/registry/remocn/icon-play").then((m) => ({diff --git a/registry/remocn/icon-phone/config.ts b/registry/remocn/icon-phone/config.tsnew file mode 100644index 00000000..e5a382a4--- /dev/null+++ b/registry/remocn/icon-phone/config.ts@@ -0,0 +1,44 @@+import { type ComponentConfig, FPS } from "@/lib/customizer-config";++export const iconPhoneConfig: ComponentConfig = {+ componentName: "PhoneIcon",+ importPath: "@/components/remocn/icon-phone",+ 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: 70,+ fps: FPS,+ compositionWidth: 48,+ compositionHeight: 48,+};diff --git a/registry/remocn/icon-phone/index.tsx b/registry/remocn/icon-phone/index.tsxnew file mode 100644index 00000000..9cc0df1b--- /dev/null+++ b/registry/remocn/icon-phone/index.tsx@@ -0,0 +1,107 @@+"use client";++import { Easing, interpolate } from "remotion";+import {+ drawnPathProps,+ type IconAnimationProps,+ useIconAnimation,+} from "@/lib/remocn-icons";++const PHONE_PATH =+ "M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384";++const CENTER = 12;++const TIMINGS = {+ drawDurationInFrames: 14,+ actionDelayInFrames: 2,+ actionDurationInFrames: 28,+ loop: false,+} as const;++export function PhoneIcon({+ animation = "both",+ loop,+ speed,+ size = 48,+ color = "currentColor",+ strokeWidth = 2,+ className,+}: IconAnimationProps) {+ const { drawProgress, scaleIn, actionProgress, actionFrame } =+ useIconAnimation({ animation, loop, speed }, TIMINGS);++ const acting = animation !== "draw" && actionFrame >= 0;++ const ring = acting+ ? interpolate(+ actionProgress,+ [0, 0.18, 0.4, 0.62, 0.82, 1],+ [0, 10, -8, 5, -2, 0],+ {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ easing: Easing.inOut(Easing.quad),+ },+ )+ : 0;++ const phone = drawnPathProps(PHONE_PATH, drawProgress);++ 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={`rotate(${ring} ${CENTER} ${CENTER})`}>+ <path+ d={PHONE_PATH}+ strokeDasharray={phone.strokeDasharray}+ strokeDashoffset={phone.strokeDashoffset}+ />+ </g>+ </svg>+ );+}++export function PhoneIconStatic({+ 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={PHONE_PATH} />+ </svg>+ );+}diff --git a/registry/remocn/registry.json b/registry/remocn/registry.jsonindex 485e4810..f71d8751 100644--- a/registry/remocn/registry.json+++ b/registry/remocn/registry.json@@ -2164,6 +2164,21 @@}]},+ {+ "name": "icon-phone",+ "type": "registry:component",+ "title": "Phone",+ "description": "Animated Lucide phone icon — draws on, then rings: three decaying rotation oscillations around center.",+ "dependencies": ["remotion"],+ "registryDependencies": ["@remocn/icons-core"],+ "files": [+ {+ "path": "icon-phone/index.tsx",+ "type": "registry:component",+ "target": "components/remocn/icon-phone.tsx"+ }+ ]+ },{"name": "icon-user","type": "registry:component",