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

BlobCursor

blob-cursor

Trails a soft animated blob behind pointer movement.

Usage

Basic usage

Wrap any content, and jelly water droplets will appear as you move the mouse over it; children is layered on top of the water droplets.

Move mouse →
tsx
<div
  className="relative h-64 overflow-hidden rounded-xl"
  style={{ background: "oklch(0.16 0.02 265)" }}
>
  <BlobCursor>
    <div className="pointer-events-none flex h-full items-center justify-center text-sm font-medium text-white/70">
      Move mouse →
    </div>
  </BlobCursor>
</div>

Square liquid block

square can be combined with the larger gooeyStrength to obtain a liquid block that fuses like mercury.

tsx
<BlobCursor square gooeyStrength={20} />

Long tail

Increase trailCount, reduce trailStiffness, and the tail will be longer and sticky.

tsx
<BlobCursor trailCount={5} trailStiffness={70} />

Close gooey

When gooey={false}, each water droplet is independent of each other and no longer merges at the edges.

tsx
<BlobCursor gooey={false} />

When to Use

Use it when the pointer itself should look like liquid mercury, with springy droplets that merge as they trail through a creative hero or landing page. Use TextCursor for a glyph trail inside a container, Antigravity for a full particle field, or Crosshair for target tracking.

Import

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

Props

NameTypeDefaultDescription
trailCountnumber3Droplet count including the leader; higher values create a denser trail
sizesnumber[][56, 116, 72]Droplet diameters in pixels, selected by index and cycled when the array is shorter than trailCount
innerSizesnumber[][18, 32, 22]Inner-highlight diameters in pixels, cycled in the same way
fillColorstringvar(--color-primary)Water drop body fill color, any CSS color can be passed
innerColorstringvar(--color-primary-foreground)inner highlight color
squarebooleanfalseUse square instead of circular droplets; combine with gooey for a liquid-block effect
gooeybooleantrueEnable the SVG merge filter; when disabled, droplets remain separate
gooeyStrengthnumber16Gaussian-blur deviation for the merge filter; higher values merge across a wider area with softer edges
leadStiffnessnumber500Leader spring stiffness; higher values follow the pointer more tightly
trailStiffnessnumber120Trailing water drop spring stiffness (the smaller the trail, the longer the trail)
dampingnumber28Spring damping (the bigger it is, the less rebound it will be and the stickier it will be)
zIndexnumber50Container stacking level; the droplet layer uses pointer-events:none
classNamestring-Class name forwarded to the relative root that fills its parent
styleCSSProperties-Inline styles forwarded to the root container

Slots

SlotTypeDescription
childrenReactNodeContent layered above the droplets with relative z-10 positioning

Usage Guidelines

  • This client component fills its parent. Give that parent an explicit height and overflow-hidden.
  • The recommended array length for sizes/innerSizes is ≥ trailCount. If it is insufficient, it will be recycled according to the index. No error will be reported but the color matching/size will be repeated.
  • Disabling gooey separates the droplets; square droplets no longer read as a merged liquid block.
  • The droplet layer uses pointer-events:none, so it does not intercept underlying interaction. Put overlay content in children, which receives z-10.

Related

BorderBeam · ShineBorder · GlareHover · Lens · AnimatedBeam · OrbitingCircles

Playground

<div className="relative h-64 overflow-hidden rounded-xl"
     style={{ background: "oklch(0.16 0.02 265)" }}>
  <BlobCursor
    trailCount={3}
    gooey={true}
    gooeyStrength={16}
    square={false}
  />
</div>
PreviousAntigravityDecorationNextClickSpark

On this page

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