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

Ripple

ripple

Emits concentric decorative rings from a configurable origin.

Usage

Basic usage

relative + place-items-center Place a layer of Ripple in the container to obtain concentric pulse rings, often used as hero/empty state background.

Ripple
tsx
<div className="relative grid h-56 w-full place-items-center overflow-hidden rounded-xl border border-border bg-surface">
  <Ripple />
  <span className="z-10 text-sm font-medium">Ripple</span>
</div>

Number of turns and starting size

numCircles controls the number of turns, mainCircleSize controls the diameter of the innermost ring - fewer turns are more focused.

Ripple
tsx
<div className="relative grid place-items-center ...">
  <Ripple mainCircleSize={140} numCircles={5} />
</div>

Change color and opacity

Take currentColor for the border and use text-* to change the color; mainCircleOpacity adjusts the starting opacity of the innermost circle.

Ripple
tsx
<div className="relative grid place-items-center ...">
  <Ripple mainCircleSize={150} className="text-primary" mainCircleOpacity={0.35} />
</div>

When to Use

Concentric pulses radiating outward from the center (radar scan, signal broadcast, CTA focus ambience). If you want a pulse ring, use this component; if you want a static radial glow, use Spotlight; if you want a regular texture, use DotPattern / GridPattern.

Import

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

Props

NameTypeDefaultDescription
mainCircleSizenumber210Innermost ring diameter px
mainCircleOpacitynumber0.24Innermost circle opacity
numCirclesnumber8Number of rings
Inherited from ComponentPropsWithoutRef<"div">. The color is currentColor and controlled by the text-* tool class.

Usage Guidelines

  • The internal absolute inset-0 is filled with the parent and must be placed in the relative positioning container. It is usually equipped with grid place-items-center to allow the pulse to spread from the center of the content.
  • Rings use staggered CSS animation and stop under prefers-reduced-motion.

Related

DotPattern · GridPattern · StripedPattern · Spotlight · RetroGrid · Meteors

Playground

Ripple
<div className="relative grid place-items-center">
  <Ripple mainCircleSize={180} numCircles={8} />
</div>
PreviousRetroGridDecorationNextMeteors

On this page

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