BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/cult/ui/canvas-fractal-grid

canvas-fractal-grid

cult-ui/canvas-fractal-grid
FreeComponent

Interactive canvas-based fractal dot grid with mouse tracking and wave effects

Install it

npx shadcn@latest add https://raw.githubusercontent.com/nolly-studio/cult-ui/HEAD/apps/www/public/r/styles/default/canvas-fractal-grid.json

Source

registry/default/ui/canvas-fractal-grid.tsxraw.githubusercontent.com/nolly-studio/cult-ui/HEAD/apps/www/public/r/styles/default/canvas-fractal-grid.json · first 6 KB
1"use client"
2
3import React, { useCallback, useEffect, useMemo, useRef, useState } from "react"
4import { AnimatePresence, motion, useAnimation } from "motion/react"
5
6interface GradientStop {
7 color: string
8 position: number
9}
10
11interface GradientType {
12 stops: GradientStop[]
13 centerX: number
14 centerY: number
15}
16
17interface CanvasFractalGridProps {
18 /** Size of each dot in pixels */
19 dotSize?: number
20 /** Spacing between dots in pixels */
21 dotSpacing?: number
22 /** Opacity of dots (0-1) */
23 dotOpacity?: number
24 /** Duration of the background gradient animation in seconds */
25 gradientAnimationDuration?: number
26 /** Stiffness of mouse tracking (higher values make it more responsive) */
27 mouseTrackingStiffness?: number
28 /** Damping of mouse tracking (higher values make it less bouncy) */
29 mouseTrackingDamping?: number
30 /** Intensity of the wave effect when hovering */
31 waveIntensity?: number
32 /** Radius of the wave effect in pixels */
33 waveRadius?: number
34 /** Array of gradient configurations for the background */
35 gradients?: GradientType[]
36 /** Color of the dots (supports any valid CSS color) */
37 dotColor?: string
38 /** Color of the dot glow effect (supports any valid CSS color) */
39 glowColor?: string
40 /** Enable or disable the noise overlay */
41 enableNoise?: boolean
42 /** Opacity of the noise overlay (0-1) */
43 noiseOpacity?: number
44 /** Enable or disable the mouse glow effect */
45 enableMouseGlow?: boolean
46 /** Set the initial performance level */
47 initialPerformance?: "low" | "medium" | "high"
48 /** Enable or disable the gradient animation */
49 enableGradient?: boolean
50}
51
52const NoiseSVG = React.memo(() => (
53 <svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%">
54 <filter id="noise">
55 <feTurbulence
56 type="fractalNoise"
57 baseFrequency="0.65"
58 numOctaves="3"
59 stitchTiles="stitch"
60 />
61 </filter>
62 <rect width="100%" height="100%" filter="url(#noise)" />
63 </svg>
64))
65
66NoiseSVG.displayName = "NoiseSVG"
67
68const NoiseOverlay: React.FC<{ opacity: number }> = ({ opacity }) => (
69 <div
70 className="absolute inset-0 h-full w-full mix-blend-overlay"
71 style={{ opacity }}
72 >
73 <NoiseSVG />
74 </div>
75)
76
77const useResponsive = () => {
78 const [windowSize, setWindowSize] = useState({
79 width: 0,
80 height: 0,
81 })
82
83 useEffect(() => {
84 if (typeof window === "undefined") return
85
86 const handleResize = () => {
87 setWindowSize({
88 width: window.innerWidth,
89// … truncated

What it pulls in

npm packages

  • motion

Files it writes

  • registry/default/ui/canvas-fractal-grid.tsx

Facts

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

Go to the source

www.cult-ui.com nolly-studio/cult-ui on GitHub Raw registry item This item as JSON

More from cult/ui

All 157 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
ai-instructionsai-instructionscult/uiComponentsFree2 deps
ai-instructions-demoai-instructions-democult/uiComponentsFreeno deps
animated-numberanimated-numbercult/uiComponentsFree1 dep
animated-number-demoanimated-number-democult/uiComponentsFreeno deps
bg-animate-buttonbg-animate-buttoncult/uiComponentsFreeno deps
bg-animate-button-demobg-animate-button-democult/uiComponentsFreeno deps
bg-animated-fractal-dot-gridbg-animated-fractal-dot-gridcult/uiComponentsFree1 dep
bg-animated-fractal-dot-grid-demobg-animated-fractal-dot-grid-democult/uiComponentsFreeno deps
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