{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "noise-background",
  "title": "Noise Background",
  "author": "VenusUI",
  "description": "A film-grain texture drawn with an SVG filter, with no image to download.",
  "files": [
    {
      "path": "registry/default/ui/noise-background.tsx",
      "content": "import * as React from \"react\"\n\nimport { cn } from \"@/lib/utils\"\n\ninterface NoiseBackgroundProps extends React.ComponentProps<\"div\"> {\n  /** Opacity of the grain, 0–1. */\n  intensity?: number\n  /** Grain size: higher values give finer grain. */\n  frequency?: number\n}\n\n/**\n * A film-grain texture over its positioned parent, drawn with an SVG\n * turbulence filter (no image to download). Adds depth to flat or gradient\n * surfaces. Decorative and static.\n */\nfunction NoiseBackground({ intensity = 0.08, frequency = 0.8, className, style, ...props }: NoiseBackgroundProps) {\n  const id = `noise-${React.useId().replace(/[^a-zA-Z0-9_-]/g, \"\")}`\n  return (\n    <div\n      aria-hidden=\"true\"\n      data-slot=\"noise-background\"\n      className={cn(\"pointer-events-none absolute inset-0 overflow-hidden mix-blend-overlay\", className)}\n      style={{ opacity: intensity, ...style }}\n      {...props}\n    >\n      <svg className=\"size-full\">\n        <filter id={id}>\n          <feTurbulence type=\"fractalNoise\" baseFrequency={frequency} numOctaves={3} stitchTiles=\"stitch\" />\n        </filter>\n        <rect width=\"100%\" height=\"100%\" filter={`url(#${id})`} />\n      </svg>\n    </div>\n  )\n}\n\nexport { NoiseBackground, type NoiseBackgroundProps }\n",
      "type": "registry:ui"
    }
  ],
  "meta": {
    "version": "0.1.0"
  },
  "categories": [
    "backgrounds"
  ],
  "type": "registry:ui"
}