{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "icon-x-circle",
  "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": "registry/remocn-icons/icon-x-circle/index.tsx",
      "content": "\"use client\";\n\nimport { Easing, interpolate } from \"remotion\";\nimport {\n  drawnPathProps,\n  type IconAnimationProps,\n  useIconAnimation,\n} from \"@/lib/remocn-icons\";\n\nconst RING_PATH = \"M12 2a10 10 0 1 0 0 20 10 10 0 1 0 0-20Z\";\nconst SLASH1_PATH = \"M15 9 9 15\";\nconst SLASH2_PATH = \"M9 9 15 15\";\n\nconst TIMINGS = {\n  drawDurationInFrames: 14,\n  actionDelayInFrames: 2,\n  actionDurationInFrames: 20,\n  loop: false,\n} as const;\n\nexport function XCircleIcon({\n  animation = \"both\",\n  loop,\n  speed,\n  size = 48,\n  color = \"currentColor\",\n  strokeWidth = 2,\n  className,\n}: IconAnimationProps) {\n  const { drawProgress, scaleIn, actionProgress, actionFrame } =\n    useIconAnimation({ animation, loop, speed }, TIMINGS);\n\n  const acting = animation !== \"draw\" && actionFrame >= 0;\n\n  const slash1Draw = interpolate(actionProgress, [0.1, 0.35], [0, 1], {\n    extrapolateLeft: \"clamp\",\n    extrapolateRight: \"clamp\",\n    easing: Easing.out(Easing.quad),\n  });\n  const slash2Draw = interpolate(actionProgress, [0.25, 0.5], [0, 1], {\n    extrapolateLeft: \"clamp\",\n    extrapolateRight: \"clamp\",\n    easing: Easing.out(Easing.quad),\n  });\n  const shake = acting\n    ? interpolate(\n        actionProgress,\n        [0.5, 0.62, 0.74, 0.86, 1],\n        [0, 2, -2, 1, 0],\n        {\n          extrapolateLeft: \"clamp\",\n          extrapolateRight: \"clamp\",\n          easing: Easing.inOut(Easing.quad),\n        },\n      )\n    : 0;\n\n  const slash1Progress = animation === \"draw\" ? 1 : acting ? slash1Draw : 0;\n  const slash2Progress = animation === \"draw\" ? 1 : acting ? slash2Draw : 0;\n\n  const ring = drawnPathProps(RING_PATH, drawProgress);\n  const slash1 = drawnPathProps(SLASH1_PATH, slash1Progress);\n  const slash2 = drawnPathProps(SLASH2_PATH, slash2Progress);\n\n  const scale = 0.85 + 0.15 * scaleIn;\n\n  return (\n    <svg\n      className={className}\n      width={size}\n      height={size}\n      viewBox=\"0 0 24 24\"\n      fill=\"none\"\n      stroke={color}\n      strokeWidth={strokeWidth}\n      strokeLinecap=\"round\"\n      strokeLinejoin=\"round\"\n      style={{\n        overflow: \"visible\",\n        transformOrigin: \"center\",\n        transform: `translateX(${shake}px) scale(${scale})`,\n      }}\n    >\n      <path\n        d={RING_PATH}\n        strokeDasharray={ring.strokeDasharray}\n        strokeDashoffset={ring.strokeDashoffset}\n      />\n      <path\n        d={SLASH1_PATH}\n        strokeDasharray={slash1.strokeDasharray}\n        strokeDashoffset={slash1.strokeDashoffset}\n      />\n      <path\n        d={SLASH2_PATH}\n        strokeDasharray={slash2.strokeDasharray}\n        strokeDashoffset={slash2.strokeDashoffset}\n      />\n    </svg>\n  );\n}\n\nexport function XCircleIconStatic({\n  size = 48,\n  color = \"currentColor\",\n  strokeWidth = 2,\n  className,\n}: {\n  size?: number;\n  color?: string;\n  strokeWidth?: number;\n  className?: string;\n}) {\n  return (\n    <svg\n      className={className}\n      width={size}\n      height={size}\n      viewBox=\"0 0 24 24\"\n      fill=\"none\"\n      stroke={color}\n      strokeWidth={strokeWidth}\n      strokeLinecap=\"round\"\n      strokeLinejoin=\"round\"\n    >\n      <circle cx=\"12\" cy=\"12\" r=\"10\" />\n      <path d={SLASH1_PATH} />\n      <path d={SLASH2_PATH} />\n    </svg>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/remocn/icon-x-circle.tsx"
    }
  ],
  "type": "registry:component"
}
