Production-ready animations, transitions, backgrounds, and scenes for Remotion
TypeScript ai-agentsclaude-codedemo-videomcpmcp-servermodel-context-protocolmotion-designproduct-demoreactremotionshadcnvideo
feat: icon circle x
dev_wandry123c400ccfc5
diff --git a/components/docs/icons-gallery.tsx b/components/docs/icons-gallery.tsxindex 2c53b243..8fb207db 100644--- a/components/docs/icons-gallery.tsx+++ b/components/docs/icons-gallery.tsx@@ -75,6 +75,7 @@ import { VideoIconStatic } from "@/registry/remocn/icon-video";import { Volume2IconStatic } from "@/registry/remocn/icon-volume-2";import { VolumeXIconStatic } from "@/registry/remocn/icon-volume-x";import { XIconStatic } from "@/registry/remocn/icon-x";+import { XCircleIconStatic } from "@/registry/remocn/icon-x-circle";export type IconCategory =| "Status & feedback"@@ -161,6 +162,12 @@ export const ICONS: IconEntry[] = [category: "Status & feedback",Static: PlusCircleIconStatic,},+ {+ name: "icon-x-circle",+ label: "X Circle",+ category: "Status & feedback",+ Static: XCircleIconStatic,+ },{name: "icon-search",label: "Search",diff --git a/registry/__index__.tsx b/registry/__index__.tsxindex 966cd0d7..46c0b75c 100644--- a/registry/__index__.tsx+++ b/registry/__index__.tsx@@ -89,6 +89,7 @@ import { iconUsersConfig } from "@/registry/remocn/icon-users/config";import { iconVideoConfig } from "@/registry/remocn/icon-video/config";import { iconVolume2Config } from "@/registry/remocn/icon-volume-2/config";import { iconVolumeXConfig } from "@/registry/remocn/icon-volume-x/config";+import { iconXCircleConfig } from "@/registry/remocn/icon-x-circle/config";import { iconXConfig } from "@/registry/remocn/icon-x/config";import { iconZapConfig } from "@/registry/remocn/icon-zap/config";import { infiniteBentoPanConfig } from "@/registry/remocn/infinite-bento-pan/config";@@ -1086,6 +1087,13 @@ const registry: Record<string, RegistryEntry> = {})),config: iconXConfig,},+ "icon-x-circle": {+ load: () =>+ import("@/registry/remocn/icon-x-circle").then((m) => ({+ default: m.XCircleIcon,+ })),+ config: iconXCircleConfig,+ },"icon-zap": {load: () =>import("@/registry/remocn/icon-zap").then((m) => ({diff --git a/registry/remocn/icon-x-circle/config.ts b/registry/remocn/icon-x-circle/config.tsnew file mode 100644index 00000000..dc127932--- /dev/null+++ b/registry/remocn/icon-x-circle/config.ts@@ -0,0 +1,44 @@+import { type ComponentConfig, FPS } from "@/lib/customizer-config";++export const iconXCircleConfig: ComponentConfig = {+ componentName: "XCircleIcon",+ importPath: "@/components/remocn/icon-x-circle",+ 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-x-circle/index.tsx b/registry/remocn/icon-x-circle/index.tsxnew file mode 100644index 00000000..a405a9d6--- /dev/null+++ b/registry/remocn/icon-x-circle/index.tsx@@ -0,0 +1,131 @@+"use client";++import { Easing, interpolate } from "remotion";+import {+ drawnPathProps,+ type IconAnimationProps,+ useIconAnimation,+} from "@/lib/remocn-icons";++const RING_PATH = "M12 2a10 10 0 1 0 0 20 10 10 0 1 0 0-20Z";+const SLASH1_PATH = "M15 9 9 15";+const SLASH2_PATH = "M9 9 15 15";++const TIMINGS = {+ drawDurationInFrames: 14,+ actionDelayInFrames: 2,+ actionDurationInFrames: 20,+ loop: false,+} as const;++export function XCircleIcon({+ 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 slash1Draw = interpolate(actionProgress, [0.1, 0.35], [0, 1], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ easing: Easing.out(Easing.quad),+ });+ const slash2Draw = interpolate(actionProgress, [0.25, 0.5], [0, 1], {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ easing: Easing.out(Easing.quad),+ });+ const shake = acting+ ? interpolate(+ actionProgress,+ [0.5, 0.62, 0.74, 0.86, 1],+ [0, 2, -2, 1, 0],+ {+ extrapolateLeft: "clamp",+ extrapolateRight: "clamp",+ easing: Easing.inOut(Easing.quad),+ },+ )+ : 0;++ const slash1Progress = animation === "draw" ? 1 : acting ? slash1Draw : 0;+ const slash2Progress = animation === "draw" ? 1 : acting ? slash2Draw : 0;++ const ring = drawnPathProps(RING_PATH, drawProgress);+ const slash1 = drawnPathProps(SLASH1_PATH, slash1Progress);+ const slash2 = drawnPathProps(SLASH2_PATH, slash2Progress);++ 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(${shake}px) scale(${scale})`,+ }}+ >+ <path+ d={RING_PATH}+ strokeDasharray={ring.strokeDasharray}+ strokeDashoffset={ring.strokeDashoffset}+ />+ <path+ d={SLASH1_PATH}+ strokeDasharray={slash1.strokeDasharray}+ strokeDashoffset={slash1.strokeDashoffset}+ />+ <path+ d={SLASH2_PATH}+ strokeDasharray={slash2.strokeDasharray}+ strokeDashoffset={slash2.strokeDashoffset}+ />+ </svg>+ );+}++export function XCircleIconStatic({+ 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={SLASH1_PATH} />+ <path d={SLASH2_PATH} />+ </svg>+ );+}diff --git a/registry/remocn/registry.json b/registry/remocn/registry.jsonindex a2000d93..404e691e 100644--- a/registry/remocn/registry.json+++ b/registry/remocn/registry.json@@ -2254,6 +2254,21 @@}]},+ {+ "name": "icon-x-circle",+ "type": "registry:component",+ "title": "X Circle",+ "description": "Animated Lucide x-circle icon — the ring draws on, the X slashes in, and the badge shakes once: firmly rejected.",+ "dependencies": ["remotion"],+ "registryDependencies": ["@remocn/icons-core"],+ "files": [+ {+ "path": "icon-x-circle/index.tsx",+ "type": "registry:component",+ "target": "components/remocn/icon-x-circle.tsx"+ }+ ]+ },{"name": "icon-user","type": "registry:component",