Starting…
Pick a UI template to include it in the prompt.
Usage with these values
import { Grain } from "@/components/effects/grain/grain";
export default function Background() {
return (
<Grain
className="h-svh w-full"
opacity={0.28}
size={1.25}
fps={18}
blend="overlay"
color={false}
/>
);
}Controls
Animated film grain to take the digital edge off gradients, photos and sections. Redraws at a film-like 18 fps instead of 60, so it costs very little. Overlay a positioned parent or wrap content. Shared WebGL2 context; SVG feTurbulence fallback.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| opacity | number (0 to 1) | 0.28 | Opacity |
| size | number (0.5 to 4) | 1.25 | Grain size |
| fps | number (1 to 60) | 18 | Frame rate |
| blend | "overlay" | "soft-light" | "multiply" | "screen" | "normal" | "overlay" | Blend |
| color | boolean |

























