Hulian UIv0.93.5413 components0 components
  • Start
  • Components
  • Blocks
  • Pages
  • Demos
  • Changelog
ChineseEnglish
  • ComponentsComponents
  • ThemeTheme

Backgrounds

  • DotPattern
  • GridPattern
  • StripedPattern
  • Spotlight
  • FadeMask
  • RetroGrid
  • Ripple
  • Meteors
  • Aurora
  • Particles
  • FlickeringGrid
  • WavyBackground
  • Silk
  • Iridescence
  • Threads
  • Orb
  • LiquidChrome
  • Balatro
  • Ballpit
  • Beams
  • ColorBends
  • DarkVeil
  • Dither
  • DotField
  • EvilEye
  • FaultyTerminal
  • Ferrofluid
  • FloatingLines
  • Galaxy
  • GradientBlinds
  • Grainient
  • GridDistortion
  • GridMotion
  • GridScan
  • Hyperspeed
  • LetterGlitch
  • Lightfall
  • Lightning
  • LightPillar
  • LightRays
  • LineWaves
  • LiquidEther
  • PixelBlast
  • PixelSnow
  • Plasma
  • PlasmaWave
  • Prism
  • PrismaticBurst
  • Radar
  • RippleGrid
  • ShapeGrid
  • SideRays
  • SoftAurora

Overlay Effects

  • BorderBeam
  • ShineBorder
  • GlareHover
  • Lens
  • AnimatedBeam
  • OrbitingCircles
  • ProgressiveBlur
  • CardSpotlight
  • Reveal
  • Antigravity
  • BlobCursor
  • ClickSpark
  • Crosshair
  • ElectricBorder
  • GhostCursor
  • GradualBlur
  • ImageTrail
  • LaserFlow
  • MagicRings
  • Magnet
  • MagnetLines
  • MetaBalls
  • MetallicPaint
  • OrbitImages
  • PixelTrail
  • PixelTransition
  • Ribbons
  • ShapeBlur
  • SplashCursor
  • StarBorder
  • StickerPeel
  • TargetCursor
  • Cubes
  • Tilt
  • BorderGlow
  • GlassIcons
  • GlassSurface
  • Lanyard
  • ModelViewer
  • FluidGlass

RippleGrid

ripple-grid

Displaces a glowing grid with concentric waves and local pointer ripples.

Usage

Basic usage

Default dark background + chart-1 token grid; placed in relative container comes with absolute inset-0 z-0.

RippleGrid

tsx
<div className="relative h-64 overflow-hidden rounded-xl"
     style={{ background: "oklch(0.12 0.02 265)" }}>
  <RippleGrid />
  <div className="relative z-10 flex h-full items-center justify-center">
    <p className="text-2xl font-bold text-white/90">RippleGrid</p>
  </div>
</div>

Dense grid·Strong glow

gridSize encrypts the grid, glowIntensity improves line halo, and gridThickness sharpens lines.

Dense grid·Strong glow

tsx
<RippleGrid gridSize={18} glowIntensity={0.3} gridThickness={20} />

Rainbow color

enableRainbow causes the mesh to cycle between RGB over time (color is ignored at this time).

Rainbow Ripples

tsx
<RippleGrid enableRainbow rippleIntensity={0.08} gridSize={12} />

Diamond Grid · Custom Color

gridRotation=45 is rotated into a diamond grid, and color is passed to any CSS color to cover token.

45° diamond · warm gold

tsx
<RippleGrid
  gridRotation={45}
  color="oklch(0.78 0.18 75)"
  gridSize={9}
  rippleIntensity={0.06}
/>

When to Use

Want an organic dynamic texture (hero / card background) where the grid is pushed and undulated by ripples. To statically regularize the grid, use GridPattern; to use the perspective retreat grid, use RetroGrid; RippleGrid is the only one in this family that allows the grid to twist with concentric ripples + pointer ripples, and supports rainbow cycle color matching.

Import

ts
import { RippleGrid } from "@hulianui/ui"

Props

NameTypeDefaultDescription
enableRainbowbooleanfalseRainbow cycle color matching (gradient between RGB over time, ignore color)
colorstringvar(--color-chart-1)Grid main color, any CSS color string; ignored when enableRainbow=true
rippleIntensitynumber0.05Ripple perturbation intensity, 0 = stationary grid
gridSizenumber10Grid density, the larger the density, the denser it is
gridThicknessnumber15Inverse line-thickness control; higher values produce thinner, sharper lines
fadeDistancenumber1.5The distance from the center to the surroundings fades out exponentially. The larger the distance, the more focused the center is.
vignetteStrengthnumber2Vignette strength, 0 = no vignetting
glowIntensitynumber0.1Grid line luminous intensity, 0 = no glow
opacitynumber1Overall opacity (0-1)
gridRotationnumber0Grid rotation angle (degrees), 45 = diamond grid
mouseInteractionbooleantrueAn extra circle of ripples is caused at the pointer
mouseInteractionRadiusnumber1Mouse ripple influence radius
classNamestring-Passthrough to the root container (or fallback div)

Slots

SlotTypeDescription
fallbackReactNodereduced-motion / static alternative content without WebGL (default static mesh shading div)

Usage Guidelines

  • Requires client-side rendering (WebGL/ogl), the component comes with "use client"; client subtree or dynamic import is installed in the RSC page.
  • The component comes with absolute inset-0 z-0, and the parent container must have positioning + size + overflow-hidden, otherwise it will not be visible.
  • enableRainbow will ignore color, don't count on both at the same time; if you want a single theme color, turn off the rainbow.
  • Under reduced motion or without WebGL, the component renders the static grid fallback. Do not use motion as the only carrier of information.

Related

DotPattern · GridPattern · StripedPattern · Spotlight · RetroGrid · Ripple

Playground

RippleGrid · WebGL Background

<div className="relative h-64 overflow-hidden rounded-xl"
     style={{ background: "oklch(0.12 0.02 265)" }}>
  <RippleGrid
    rippleIntensity={0.05}
    gridSize={10}
    gridThickness={15}
    glowIntensity={0.1}
    gridRotation={0}
    enableRainbow={false}
    mouseInteraction={true}
  />
  <div className="relative z-10">Content</div>
</div>
PreviousRadarDecorationNextShapeGrid

On this page

  • Usage
  • Documentation
    • When to Use
    • Import
    • Props
    • Slots
    • Usage Guidelines
    • Related
  • Playground