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

GradientBlinds

gradient-blinds

Combines multicolor gradients, vertical blind shading, grain, and a pointer spotlight.

Usage

Basic usage

Default is chart token two-color, the spotlight follows the mouse. Put it into the relative container and it will be filled.

tsx
<div className="relative h-56 overflow-hidden rounded-xl bg-neutral-950">
  <GradientBlinds />
</div>

Custom gradient color station + oblique

gradientColors passes any CSS color (up to the first 8), angle rotates the entire ribbon.

tsx
<GradientBlinds
  gradientColors={[
    "var(--color-chart-1)",
    "var(--color-chart-2)",
    "var(--color-chart-4)",
  ]}
  angle={30}
  blindCount={24}
/>

Mirror Gradient

mirrorGradient Fold the ribbon in half at the midpoint to form a symmetrical back and forth.

tsx
<GradientBlinds mirrorGradient blindCount={32} noise={0.15} />

Distortion + Large Spotlight

distortAmount makes the ribbon wavy, spotlightRadius/Softness adjusts the size, softness and hardness of the spotlight.

tsx
<GradientBlinds
  gradientColors={["oklch(0.72 0.22 30)", "var(--color-chart-3)"]}
  distortAmount={0.8}
  spotlightRadius={0.7}
  spotlightSoftness={1.4}
  shineDirection="right"
/>

When to Use

Use it when you need a colorful gradient background (hero, marketing block, card base) with vertical louver texture + pointer spotlight. If you want pure stripe light without gradient, use StripedPattern; if you want pure pointer light without louvers, use Spotlight; if you want liquid fluid, use Ferrofluid. This component combines gradient + blinds + spotlight.

Import

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

Props

NameTypeDefaultDescription
gradientColorsstring[]--color-chart-1/3Gradient color station, horizontal interpolation, up to the first 8; any CSS color
anglenumber0Ribbon rotation angle (degrees), only converts gradients and louver textures but not containers
noisenumber0.3Particle noise intensity, 0=pure, recommended 0-1
blindCountnumber16The number of vertical blinds, whichever is smaller than blindMinWidth
blindMinWidthnumber60The minimum width of a single bar (px), narrow containers will converge to the number of bars according to this; pass 0/negative value to close the constraint
mouseDampeningnumber0.15Spotlight-following damping in seconds; 0 follows immediately
mirrorGradientbooleanfalseThe midpoint of the ribbon is folded in half to form a symmetrical round trip
spotlightRadiusnumber0.5Spotlight radius (normalized), minimum clamp 1e-4
spotlightSoftnessnumber1Spotlight attenuation index, the larger the index, the sharper the edge
spotlightOpacitynumber1Spotlight intensity, 0=no spotlight
distortAmountnumber0Gradient distortion amplitude, the larger the ribbon, the more wavy it is
shineDirection"left" | "right""left"Highlight scanning direction, "right" flips the light and dark tendency of each louver
dprnumbermin(dpr, 2)Device pixel ratio upper limit
classNamestring-Root container div
styleCSSProperties-Root container inline style, such as mixBlendMode

Slots

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

Usage Guidelines

  • Render the OGL/WebGL effect inside a "use client" boundary. SSR and unavailable WebGL render the static-blinds fallback.
  • blindCount is not an exact strip count in a narrow container because blindMinWidth also constrains layout. Set blindMinWidth={0} when the count must be exact.
  • Place the root in a relative overflow-hidden container with an explicit height.
  • Spotlight tracking depends on pointer events and becomes a static ribbon on touch-only or pointerless devices.

Related

DotPattern · GridPattern · StripedPattern · Spotlight · RetroGrid · Ripple

Playground

<div className="relative h-56 overflow-hidden rounded-xl"
     style={{ background: "oklch(0.14 0.02 255)" }}>
  <GradientBlinds
    blindCount={16}
    angle={0}
    noise={0.3}
    shineDirection="left"
    mirrorGradient={false}
  />
</div>
PreviousGalaxyDecorationNextGrainient

On this page

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