Skip to content
VenusUI
Get started

Noise Background

A film-grain texture drawn with an SVG filter, with no image to download.

Preview

Installation

npx shadcn@latest add @venusui/noise-background

Run this in a project set up with shadcn. If you haven’t set it up yet, run npx shadcn@latest init first.

Files added to your project

Paths use the default shadcn aliases. The CLI follows the aliases in your components.json.

  • @/components/ui/noise-background.tsx

Usage

The code behind the preview above.

noise-background-demo.tsx

import { NoiseBackground } from "@/components/ui/noise-background"

export default function NoiseBackgroundDemo() {
  return (
    <div className="relative flex h-56 w-full max-w-md items-center justify-center overflow-hidden rounded-xl border bg-linear-to-br from-muted to-card">
      <NoiseBackground intensity={0.25} />
      <p className="relative text-xl font-semibold tracking-tight">Film grain</p>
    </div>
  )
}

API reference

PropTypeDefaultDescription
intensitynumber0.08Grain opacity, 0–1.
frequencynumber0.8Grain size; higher is finer.

All <div> props, including className and style.

Requirements

  • Tailwind CSS v4. Works in Server Components.

Customization

  • Layer it over gradients or flat colors to add depth.
  • It blends with mix-blend-overlay; remove that class for a stronger look.

Accessibility

  • Decorative and static (aria-hidden).

Troubleshooting

The grain covers the whole page.
Its parent needs position: relative.
Unknown registry "@venusui"
Your shadcn CLI couldn’t find the namespace in the shadcn registry index. Use the latest CLI (npx shadcn@latest), install by URL, or register it with its address: npx shadcn@latest registry add @venusui=https://venusui.com/r/{name}.json.
No components.json found
Run npx shadcn@latest init in your project first.
Loading preview

A dotted 3D Earth with glowing routes between cities; pulses travel each arc and ripple where they land.

Loading preview

Soft, blurred color fields that drift slowly behind content.

Loading preview

Background Beams

Backgrounds

Curved lines across a section with light traveling along them.