BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/magicui/noise-texture

Noise Texture

magicui/noise-texture
FreeComponent

An SVG fractal noise layer using feTurbulence, desaturation, and contrast controls for subtle texture overlays.

Live preview

live · rendered by the registry
Rendered by magicui on their own page — this is the component running, not a screenshot of it.

Install it

npx shadcn@latest add https://magicui.design/r/noise-texture.json

Source

registry/magicui/noise-texture.tsxmagicui.design/r/noise-texture.json
1"use client"
2
3import { useId, type ComponentProps } from "react"
4
5import { cn } from "@/lib/utils"
6
7export interface NoiseTextureProps extends ComponentProps<"svg"> {
8 /** Extra classes merged onto the root `svg` element. */
9 className?: string
10 /**
11 * `baseFrequency` for `feTurbulence`; higher values yield finer-grained noise.
12 * @default 0.4
13 */
14 frequency?: number
15 /**
16 * `numOctaves` for `feTurbulence`; more octaves add detail at smaller scales.
17 * @default 6
18 */
19 octaves?: number
20 /**
21 * Linear slope on each channel after desaturation; adjusts contrast of the noise.
22 * @default 0.15
23 */
24 slope?: number
25 /**
26 * Opacity of the filled noise layer (`rect`).
27 * @default 0.6
28 */
29 noiseOpacity?: number
30}
31
32export const NoiseTexture = ({
33 className,
34 frequency = 0.4,
35 octaves = 6,
36 slope = 0.15,
37 noiseOpacity = 0.6,
38 ...props
39}: NoiseTextureProps) => {
40 const filterId = useId()
41
42 return (
43 <svg
44 className={cn(
45 "pointer-events-none absolute inset-0 z-0 size-full opacity-50 select-none dark:opacity-[0.75]",
46 className
47 )}
48 xmlns="http://www.w3.org/2000/svg"
49 {...props}
50 >
51 <filter id={filterId}>
52 <feTurbulence
53 type="fractalNoise"
54 baseFrequency={frequency}
55 numOctaves={octaves}
56 stitchTiles="stitch"
57 />
58 <feColorMatrix type="saturate" values="0" />
59 <feComponentTransfer>
60 <feFuncR type="linear" slope={slope} />
61 <feFuncG type="linear" slope={slope} />
62 <feFuncB type="linear" slope={slope} />
63 </feComponentTransfer>
64 </filter>
65 <rect
66 width="100%"
67 height="100%"
68 filter={`url(#${filterId})`}
69 opacity={noiseOpacity}
70 />
71 </svg>
72 )
73}

Files it writes

  • registry/magicui/noise-texture.tsx

Facts

Registry
magicui
Type
registry:ui
Access
Free
Files written
1
Licence
the repository states none
First indexed
2026-08-01
Last confirmed
yesterday

Go to the source

Docs on magicui magicui.design magicuidesign/magicui on GitHub Raw registry item This item as JSON

More from magicui

All 247 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
AndroidandroidmagicuiComponentsFreeno deps
Animated Beamanimated-beammagicuiComponentsFree1 dep
Animated Circular Progress Baranimated-circular-progress-barmagicuiComponentsFreeno deps
Animated Gradient Textanimated-gradient-textmagicuiComponentsFreeno deps
Animated Grid Patternanimated-grid-patternmagicuiComponentsFree1 dep
Animated Listanimated-listmagicuiComponentsFree1 dep
Animated Shiny Textanimated-shiny-textmagicuiComponentsFreeno deps
Theme Toggleranimated-theme-togglermagicuiComponentsFree1 dep
BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex