{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "icon-pencil",
  "title": "Pencil",
  "description": "Animated Lucide pencil icon — draws on, then scribbles: the pencil rocks around its tip as if writing.",
  "dependencies": ["remotion"],
  "registryDependencies": ["@remocn/icons-core"],
  "files": [
    {
      "path": "registry/remocn-icons/icon-pencil/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 BODY_PATH =\n  \"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z\";\nconst TIP_PATH = \"M15 5 19 9\";\n\nconst TIMINGS = {\n  drawDurationInFrames: 14,\n  actionDelayInFrames: 2,\n  actionDurationInFrames: 24,\n  loop: false,\n} as const;\n\nexport function PencilIcon({\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 linearDraw = 1 - (1 - drawProgress) ** (1 / 3);\n\n  const bodyDraw = interpolate(linearDraw, [0, 0.857], [0, 1], {\n    extrapolateLeft: \"clamp\",\n    extrapolateRight: \"clamp\",\n    easing: Easing.out(Easing.quad),\n  });\n  const tipDraw = interpolate(linearDraw, [0.571, 1], [0, 1], {\n    extrapolateLeft: \"clamp\",\n    extrapolateRight: \"clamp\",\n    easing: Easing.out(Easing.quad),\n  });\n\n  const acting = animation !== \"draw\" && actionFrame >= 0;\n\n  const rotate = acting\n    ? interpolate(actionProgress, [0, 0.25, 0.5, 0.75, 1], [0, -6, 4, -2, 0], {\n        extrapolateLeft: \"clamp\",\n        extrapolateRight: \"clamp\",\n        easing: Easing.inOut(Easing.quad),\n      })\n    : 0;\n  const nudge = acting\n    ? interpolate(\n        actionProgress,\n        [0, 0.25, 0.5, 0.75, 1],\n        [0, 1, -0.5, 0.5, 0],\n        {\n          extrapolateLeft: \"clamp\",\n          extrapolateRight: \"clamp\",\n          easing: Easing.inOut(Easing.quad),\n        },\n      )\n    : 0;\n\n  const body = drawnPathProps(BODY_PATH, bodyDraw);\n  const tip = drawnPathProps(TIP_PATH, tipDraw);\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: `scale(${scale})`,\n      }}\n    >\n      <g transform={`rotate(${rotate} 3 21) translate(${nudge} 0)`}>\n        <path\n          d={BODY_PATH}\n          strokeDasharray={body.strokeDasharray}\n          strokeDashoffset={body.strokeDashoffset}\n        />\n        <path\n          d={TIP_PATH}\n          strokeDasharray={tip.strokeDasharray}\n          strokeDashoffset={tip.strokeDashoffset}\n        />\n      </g>\n    </svg>\n  );\n}\n\nexport function PencilIconStatic({\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={BODY_PATH} />\n      <path d={TIP_PATH} />\n    </svg>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/remocn/icon-pencil.tsx"
    }
  ],
  "type": "registry:component"
}
