{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "shiny-button",
  "title": "Shiny Button",
  "description": "Button with a glossy gradient sheen that sweeps on a loop.",
  "dependencies": [
    "@vllnt/ui@^0.2.1"
  ],
  "registryDependencies": [],
  "files": [
    {
      "path": "registry/default/shiny-button/shiny-button.tsx",
      "content": "import * as React from \"react\";\n\nimport { cn } from \"@vllnt/ui\";\n\n/** Props for {@link ShinyButton}. */\nexport type ShinyButtonProps = React.ComponentPropsWithoutRef<\"button\">;\n\n/**\n * Secondary button with a slow sheen drifting across its surface on a loop.\n *\n * Respects `prefers-reduced-motion`: the sheen stays parked off-screen.\n *\n * @example\n * ```tsx\n * <ShinyButton>Learn more</ShinyButton>\n * ```\n */\nexport const ShinyButton = ({\n  children,\n  className,\n  ref,\n  ...props\n}: ShinyButtonProps & { ref?: React.Ref<HTMLButtonElement> }) => {\n  return (\n    <button\n      className={cn(\n        \"relative inline-flex items-center justify-center overflow-hidden rounded-md border border-border bg-secondary px-4 py-2 text-sm font-medium text-secondary-foreground transition-colors hover:bg-secondary/80 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50\",\n        className,\n      )}\n      ref={ref}\n      type=\"button\"\n      {...props}\n    >\n      <span\n        aria-hidden=\"true\"\n        className=\"pointer-events-none absolute inset-0 -translate-x-full animate-shimmer motion-reduce:animate-none\"\n        style={{\n          animationDuration: \"3s\",\n          background:\n            \"linear-gradient(90deg, transparent, oklch(var(--foreground) / 0.15), transparent)\",\n        }}\n      />\n      <span className=\"relative z-10 inline-flex items-center gap-2\">\n        {children}\n      </span>\n    </button>\n  );\n};\nShinyButton.displayName = \"ShinyButton\";\n",
      "type": "registry:component"
    }
  ],
  "type": "registry:component",
  "version": "0.2.1",
  "stability": "stable"
}
