{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "animated-next-button",
  "title": "Animated Next Button",
  "description": "Compact next button with a looping arrow reveal, crisp press feedback, and loading and disabled states.",
  "dependencies": [
    "@solar-icons/react"
  ],
  "files": [
    {
      "path": "components/navigation/AnimatedNextButton.tsx",
      "content": "'use client';\n\nimport type { ButtonHTMLAttributes } from 'react';\nimport { AltArrowRightBoldIcon } from '@solar-icons/react';\n\ntype AnimatedNextButtonProps = ButtonHTMLAttributes<HTMLButtonElement> & {\n  loading?: boolean;\n};\n\nexport default function AnimatedNextButton({\n  children = 'Next',\n  loading = false,\n  className = '',\n  disabled,\n  ...props\n}: AnimatedNextButtonProps) {\n  return (\n    <button\n      {...props}\n      type={props.type ?? 'button'}\n      disabled={disabled || loading}\n      className={[\n        'group inline-flex h-12 items-center gap-4 rounded-full border border-[color:var(--color-border,#e5e7eb)] bg-[var(--color-background,#fff)] py-1.5 pl-5 pr-1.5 text-sm font-semibold text-[color:var(--color-foreground,#030712)] shadow-sm transition duration-200 hover:border-[color:var(--color-input,#d1d5db)] hover:shadow-md active:scale-[0.98] focus:outline-none focus-visible:ring-2 focus-visible:ring-[color:var(--color-ring,#030712)] focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 motion-reduce:transition-none',\n        className,\n      ].filter(Boolean).join(' ')}\n    >\n      <span>{children}</span>\n      <span className=\"relative grid h-9 w-9 overflow-hidden rounded-full bg-[var(--color-primary,#030712)] text-[color:var(--color-primary-foreground,#fff)]\">\n        {loading ? (\n          <span className=\"m-auto h-4 w-4 animate-spin rounded-full border-2 border-white/30 border-t-white motion-reduce:animate-none\" aria-label=\"Loading\" />\n        ) : (\n          <>\n            <AltArrowRightBoldIcon className=\"absolute left-1/2 top-1/2 h-4 w-4 -translate-x-1/2 -translate-y-1/2 transition-transform duration-300 ease-out group-hover:translate-x-6 group-focus-visible:translate-x-6 motion-reduce:transition-none\" aria-hidden=\"true\" />\n            <AltArrowRightBoldIcon className=\"absolute left-1/2 top-1/2 h-4 w-4 -translate-x-8 -translate-y-1/2 transition-transform duration-300 ease-out group-hover:-translate-x-1/2 group-focus-visible:-translate-x-1/2 motion-reduce:transition-none\" aria-hidden=\"true\" />\n          </>\n        )}\n      </span>\n    </button>\n  );\n}\n",
      "type": "registry:component",
      "target": "@components/navigation/AnimatedNextButton.tsx"
    }
  ],
  "categories": [
    "navigation"
  ],
  "type": "registry:component"
}