Getting Started
Templates
Components
Special Effects
Animations
Text Animations
Backgrounds
NoiseTexture renders a full-size svg (absolute, inset 0). Put it inside a relative container and layer content above with z-10 when needed.
import { NoiseTexture } from "@/components/ui/noise-texture"<div className="relative h-64 overflow-hidden rounded-lg border">
<NoiseTexture />
</div>NoiseTextureProps extends React’s ComponentProps<"svg">. Besides standard SVG attributes, these props are supported:
| Prop | Type | Default | Description |
|---|---|---|---|
className | string | — | Merged onto the root svg (via cn) |
frequency | number | 0.4 | baseFrequency for feTurbulence |
octaves | number | 6 | numOctaves for feTurbulence |
slope | number | 0.15 | Linear slope per channel after desaturation |
noiseOpacity | number | 0.6 | Opacity of the noise rect |