{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "icon-external-link",
  "title": "External Link",
  "description": "Animated Lucide external-link icon — the box and arrow draw on, then the arrow darts out toward the top-right for 'view on GitHub', external docs, or open-in-new-tab beats.",
  "dependencies": ["remotion"],
  "registryDependencies": ["@remocn/icons-core"],
  "files": [
    {
      "path": "registry/remocn-icons/icon-external-link/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 BOX_PATH = \"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6\";\nconst SHAFT_PATH = \"M10 14 21 3\";\nconst HEAD_PATH = \"M15 3h6v6\";\n\nconst ARROW_CX = 15.5;\nconst ARROW_CY = 8.5;\n\nconst TIMINGS = {\n  drawDurationInFrames: 16,\n  actionDelayInFrames: 2,\n  actionDurationInFrames: 20,\n  loop: false,\n} as const;\n\nexport function ExternalLinkIcon({\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 } = useIconAnimation(\n    { animation, loop, speed },\n    TIMINGS,\n  );\n\n  const linearDraw = 1 - (1 - drawProgress) ** (1 / 3);\n\n  const boxProgress = interpolate(linearDraw, [0, 0.75], [0, 1], {\n    extrapolateLeft: \"clamp\",\n    extrapolateRight: \"clamp\",\n    easing: Easing.out(Easing.quad),\n  });\n  const shaftProgress = interpolate(linearDraw, [0.5, 0.875], [0, 1], {\n    extrapolateLeft: \"clamp\",\n    extrapolateRight: \"clamp\",\n    easing: Easing.inOut(Easing.quad),\n  });\n  const headProgress = interpolate(linearDraw, [0.75, 1], [0, 1], {\n    extrapolateLeft: \"clamp\",\n    extrapolateRight: \"clamp\",\n    easing: Easing.inOut(Easing.quad),\n  });\n\n  const box = drawnPathProps(BOX_PATH, boxProgress);\n  const shaft = drawnPathProps(SHAFT_PATH, shaftProgress);\n  const head = drawnPathProps(HEAD_PATH, headProgress);\n\n  const dart = interpolate(actionProgress, [0, 0.4, 0.6, 1], [0, 1, 1, 0], {\n    extrapolateLeft: \"clamp\",\n    extrapolateRight: \"clamp\",\n    easing: Easing.inOut(Easing.quad),\n  });\n  const tx = 3 * dart;\n  const ty = -3 * dart;\n  const arrowScale = 1 + 0.05 * dart;\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: `scale(${scale})`,\n      }}\n    >\n      <path\n        d={BOX_PATH}\n        strokeDasharray={box.strokeDasharray}\n        strokeDashoffset={box.strokeDashoffset}\n      />\n      <g\n        transform={`translate(${tx} ${ty}) translate(${ARROW_CX} ${ARROW_CY}) scale(${arrowScale}) translate(${-ARROW_CX} ${-ARROW_CY})`}\n      >\n        <path\n          d={SHAFT_PATH}\n          strokeDasharray={shaft.strokeDasharray}\n          strokeDashoffset={shaft.strokeDashoffset}\n        />\n        <path\n          d={HEAD_PATH}\n          strokeDasharray={head.strokeDasharray}\n          strokeDashoffset={head.strokeDashoffset}\n        />\n      </g>\n    </svg>\n  );\n}\n\nexport function ExternalLinkIconStatic({\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      <path d={BOX_PATH} />\n      <path d={SHAFT_PATH} />\n      <path d={HEAD_PATH} />\n    </svg>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/remocn/icon-external-link.tsx"
    }
  ],
  "type": "registry:component"
}
