{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "icons-arrow-right",
  "title": "Arrow Right",
  "description": "Animated right arrow that nudges forward and redraws its stroke on hover using a pure CSS stroke-dash animation.",
  "registryDependencies": ["utils"],
  "files": [
    {
      "path": "registry/icons/arrow-right/index.tsx",
      "content": "\"use client\";\n\nimport { useEffect } from \"react\";\n\nconst STYLE_ID = \"sora-arrow-right-styles\";\n\nconst animations = {\n  default: {},\n} as const;\n\nconst supportedStaticAnimations = [] as const;\n\nconst ARROW_RIGHT_CSS = `\nsvg[data-arrow-right] { transition: transform 0.3s ease; }\nsvg[data-arrow-right][data-hover]:hover,\n.group:hover svg[data-arrow-right][data-group-hover],\nsvg[data-arrow-right][data-animate] {\n  transform: translateX(var(--sora-arrow-nudge, 2px));\n}\nsvg[data-arrow-right][data-hover]:hover path,\n.group:hover svg[data-arrow-right][data-group-hover] path,\nsvg[data-arrow-right][data-animate] path {\n  animation: sora-arrow-right-dash var(--sora-arrow-duration, 0.8s) linear forwards;\n}\nsvg[data-arrow-right][data-loop] path { animation-iteration-count: infinite; }\n@keyframes sora-arrow-right-dash {\n  0% { stroke-dasharray: 0, 20; stroke-dashoffset: 0; }\n  50% { stroke-dasharray: 10, 10; stroke-dashoffset: -5; }\n  100% { stroke-dasharray: 20, 0; stroke-dashoffset: -10; }\n}\n@media (prefers-reduced-motion: reduce) {\n  svg[data-arrow-right],\n  svg[data-arrow-right][data-hover]:hover,\n  .group:hover svg[data-arrow-right][data-group-hover],\n  svg[data-arrow-right][data-animate] {\n    transform: none;\n    transition: none;\n  }\n  svg[data-arrow-right][data-hover]:hover path,\n  .group:hover svg[data-arrow-right][data-group-hover] path,\n  svg[data-arrow-right][data-animate] path {\n    animation: none;\n  }\n}\n`;\n\nfunction ensureArrowRightStyles() {\n  if (typeof document === \"undefined\") {\n    return;\n  }\n  let style = document.querySelector(`#${STYLE_ID}`) as HTMLStyleElement | null;\n  if (!style) {\n    style = document.createElement(\"style\");\n    style.id = STYLE_ID;\n    document.head.append(style);\n  }\n  style.textContent = ARROW_RIGHT_CSS;\n}\n\ninterface ArrowRightProps extends Omit<React.SVGProps<SVGSVGElement>, \"color\"> {\n  /**\n   * Play the stroke-draw animation immediately on mount. Remount (change the\n   * `key`) to replay — this is what the /icons preview panel drives.\n   * @default false\n   */\n  animate?: boolean | \"default\";\n  /**\n   * Play the animation while an ancestor with the `group` class is hovered.\n   * Add `group` to the enclosing button (like the source CTA) to trigger it.\n   * @default true\n   */\n  animateOnGroupHover?: boolean;\n  /**\n   * Play the animation while the icon itself is hovered.\n   * @default true\n   */\n  animateOnHover?: boolean;\n  /** Animation preset. Arrow Right currently provides only `default`. */\n  animation?: keyof typeof animations;\n  /**\n   * Any valid CSS color, mapped to the SVG `stroke`.\n   * @default \"currentColor\"\n   */\n  color?: string;\n  /**\n   * Duration of the stroke-draw animation, in seconds.\n   * @default 0.8\n   */\n  duration?: number;\n  /**\n   * Repeat the stroke-draw animation indefinitely.\n   * @default false\n   */\n  loop?: boolean;\n  /**\n   * Horizontal shift of the arrow while animating, in pixels.\n   * @default 2\n   */\n  nudge?: number;\n  /**\n   * Icon size in pixels (applied to both width and height).\n   * @default 24\n   */\n  size?: number | string;\n}\n\nfunction ArrowRight({\n  size = 24,\n  color = \"currentColor\",\n  animate,\n  animateOnHover = true,\n  animateOnGroupHover = true,\n  loop,\n  duration,\n  nudge,\n  animation: _animation,\n  strokeWidth = 1.5,\n  className,\n  style,\n  ...props\n}: ArrowRightProps) {\n  useEffect(() => {\n    ensureArrowRightStyles();\n  }, []);\n\n  const styleVars = {\n    ...(duration !== undefined && { \"--sora-arrow-duration\": `${duration}s` }),\n    ...(nudge !== undefined && { \"--sora-arrow-nudge\": `${nudge}px` }),\n    ...style,\n  } as React.CSSProperties;\n\n  return (\n    <svg\n      aria-hidden=\"true\"\n      className={className}\n      data-animate={animate ? \"\" : undefined}\n      data-arrow-right=\"\"\n      data-group-hover={animateOnGroupHover ? \"\" : undefined}\n      data-hover={animateOnHover ? \"\" : undefined}\n      data-loop={loop ? \"\" : undefined}\n      fill=\"none\"\n      height={size}\n      stroke={color}\n      strokeLinecap=\"round\"\n      strokeLinejoin=\"round\"\n      strokeWidth={strokeWidth}\n      style={styleVars}\n      viewBox=\"0 0 24 24\"\n      width={size}\n      xmlns=\"http://www.w3.org/2000/svg\"\n      {...props}\n    >\n      <path d=\"M5 12h14\" />\n      <path d=\"m12 5 7 7-7 7\" />\n    </svg>\n  );\n}\n\nexport {\n  ArrowRight,\n  ArrowRight as ArrowRightIcon,\n  type ArrowRightProps,\n  type ArrowRightProps as ArrowRightIconProps,\n  animations,\n  supportedStaticAnimations,\n};\n",
      "type": "registry:ui",
      "target": "components/sora-ui/icons/arrow-right.tsx"
    }
  ],
  "meta": {
    "keywords": ["arrow", "right", "next", "forward", "direction", "cta"],
    "releaseDate": "2026-07-31"
  },
  "type": "registry:ui"
}
