{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "ripple-background",
  "title": "Ripple Background",
  "author": "VenusUI",
  "description": "Concentric rings that gently pulse from the center, e.g. behind an icon.",
  "files": [
    {
      "path": "registry/default/ui/ripple-background.tsx",
      "content": "import * as React from \"react\"\n\nimport { cn } from \"@/lib/utils\"\n\ninterface RippleBackgroundProps extends React.ComponentProps<\"div\"> {\n  /** Number of rings. */\n  rings?: number\n  /** Diameter of the innermost ring, in pixels. */\n  size?: number\n  /** Extra diameter per ring, in pixels. */\n  step?: number\n}\n\n/**\n * Concentric rings that pulse outward from the center of their positioned\n * parent, e.g. behind an icon or avatar. Decorative; still with reduced motion.\n */\nfunction RippleBackground({ rings = 6, size = 160, step = 90, className, ...props }: RippleBackgroundProps) {\n  return (\n    <div\n      aria-hidden=\"true\"\n      data-slot=\"ripple-background\"\n      className={cn(\n        \"pointer-events-none absolute inset-0 overflow-hidden [mask-image:radial-gradient(circle,#000,transparent_70%)]\",\n        className\n      )}\n      {...props}\n    >\n      {Array.from({ length: rings }, (_, index) => {\n        const diameter = size + index * step\n        return (\n          <span\n            key={index}\n            className=\"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 animate-ripple-ring rounded-full border border-foreground/15 bg-foreground/[0.03] motion-reduce:animate-none\"\n            style={{\n              width: diameter,\n              height: diameter,\n              opacity: 1 - index / (rings + 1),\n              animationDelay: `${index * 0.12}s`,\n            }}\n          />\n        )\n      })}\n    </div>\n  )\n}\n\nexport { RippleBackground, type RippleBackgroundProps }\n",
      "type": "registry:ui"
    }
  ],
  "cssVars": {
    "theme": {
      "animate-ripple-ring": "ripple-ring 3s ease-in-out infinite"
    }
  },
  "css": {
    "@keyframes ripple-ring": {
      "0%, 100%": {
        "transform": "scale(1)"
      },
      "50%": {
        "transform": "scale(0.94)"
      }
    }
  },
  "meta": {
    "version": "0.1.0"
  },
  "categories": [
    "backgrounds",
    "animations"
  ],
  "type": "registry:ui"
}