Loading preview
A dotted 3D Earth with glowing routes between cities; pulses travel each arc and ripple where they land.
A film-grain texture drawn with an SVG filter, with no image to download.
npx shadcn@latest add @venusui/noise-backgroundRun this in a project set up with shadcn. If you haven’t set it up yet, run npx shadcn@latest init first.
Paths use the default shadcn aliases. The CLI follows the aliases in your components.json.
@/components/ui/noise-background.tsxThe 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>
)
}
| Prop | Type | Default | Description |
|---|---|---|---|
| intensity | number | 0.08 | Grain opacity, 0–1. |
| frequency | number | 0.8 | Grain size; higher is finer. |
All <div> props, including className and style.
mix-blend-overlay; remove that class for a stronger look.aria-hidden).position: relative.Unknown registry "@venusui"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 foundnpx shadcn@latest init in your project first.A dotted 3D Earth with glowing routes between cities; pulses travel each arc and ripple where they land.
Soft, blurred color fields that drift slowly behind content.
Curved lines across a section with light traveling along them.