{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "shimmer-button",
  "title": "Shimmer Button",
  "author": "VenusUI",
  "description": "A primary button with a light sweep across its surface.",
  "files": [
    {
      "path": "registry/default/ui/shimmer-button.tsx",
      "content": "import * as React from \"react\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype ShimmerButtonProps = React.ComponentProps<\"button\">\n\n/**\n * A primary button with a light sweep across its surface.\n * The animation stops when the user prefers reduced motion.\n * Requires the `animate-shimmer` theme variable and `shimmer` keyframes,\n * which the CLI adds to your CSS on install.\n */\nfunction ShimmerButton({ className, type = \"button\", ...props }: ShimmerButtonProps) {\n  return (\n    <button\n      type={type}\n      data-slot=\"shimmer-button\"\n      className={cn(\n        \"relative inline-flex h-9 shrink-0 items-center justify-center gap-2 rounded-lg border border-primary/20 px-4 text-sm font-medium whitespace-nowrap text-primary-foreground outline-none select-none\",\n        \"bg-[linear-gradient(110deg,var(--primary)_40%,color-mix(in_oklch,var(--primary-foreground)_30%,var(--primary))_50%,var(--primary)_60%)] bg-size-[200%_100%] animate-shimmer motion-reduce:animate-none\",\n        \"transition-[translate,box-shadow] focus-visible:ring-3 focus-visible:ring-ring/50 active:translate-y-px disabled:pointer-events-none disabled:opacity-50\",\n        \"[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4\",\n        className\n      )}\n      {...props}\n    />\n  )\n}\n\nexport { ShimmerButton, type ShimmerButtonProps }\n",
      "type": "registry:ui"
    }
  ],
  "cssVars": {
    "theme": {
      "animate-shimmer": "shimmer 2.5s linear infinite"
    }
  },
  "css": {
    "@keyframes shimmer": {
      "from": {
        "background-position": "200% 0"
      },
      "to": {
        "background-position": "-200% 0"
      }
    }
  },
  "meta": {
    "version": "0.1.0"
  },
  "categories": [
    "buttons",
    "animations"
  ],
  "type": "registry:ui"
}