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

PrismaticBurst

prismatic-burst

Emits configurable curved spectral rays from an interactive central burst.

Usage

Basic usage

Default continuous halo + theme chart token spectrum; placed in the relative container comes with absolute inset-0 z-0.

PrismaticBurst
tsx
<div className="relative h-56 overflow-hidden rounded-xl"
     style={{ background: "oklch(0.13 0.02 275)" }}>
  <PrismaticBurst className="opacity-90" />
</div>

Number of ray lobes

rayCount>0 Sort out N symmetrical rays according to angle, 6 = hexagram-like burst.

tsx
<PrismaticBurst rayCount={6} intensity={2.4} className="opacity-95" />

Three-dimensional tumbling + twisting

animationType=rotate3d tumbles three-dimensionally, distort twists the rays like a gravitational lens, and noiseAmount weakens the strips.

tsx
<PrismaticBurst
  animationType="rotate3d"
  distort={18}
  speed={1.4}
  noiseAmount={0.4}
  className="opacity-90"
/>

Custom ribbon

colors passes the CSS color array (supports var token) baked into a gradient texture; the hover mode follows the pointer tilt.

tsx
<PrismaticBurst
  animationType="hover"
  colors={[
    "oklch(0.72 0.22 30)",
    "var(--color-chart-3)",
    "oklch(0.78 0.16 90)",
  ]}
  intensity={2.2}
  className="opacity-90"
/>

When to Use

Use it when you need a "spectral ray bursting from the center" as a strong visual focus (product release page, event Hero), with the largest sense of radiation and spectrum span. If you want a single pyramid light splitter, choose Prism, if you want a full flow texture, choose Plasma / PlasmaWave; this component is a central radiated light burst, the number of petals can be adjusted to make a hexagram/starburst, and mixBlendMode is often used for superimposed base images.

Import

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

Props

NameTypeDefaultDescription
intensitynumber2Overall brightness gain (directly multiplied by the final color); 0=full black
speednumber1Volume step animation speed factor; the larger it is, the faster it surges
animationType"rotate" | "rotate3d" | "hover""rotate"rotate=single-axis plane rotation (most restrained)/rotate3d=three-dimensional Euler rotation/hover=tilt following the pointer
colorsstring[]--color-chart-1..5Color strip (baked into a one-dimensional gradient texture and sampled according to march progress); any CSS color string, default chart token light and dark adaptive
distortnumber0Light bending and distortion amount 0-50 (clamped within the shader); the larger the ray, the more likely it is to be twisted by a gravitational lens
noiseAmountnumber0Grain jitter noise amount 0-1; weaken the sense of banding
rayCountnumber0Number of radiation beam lobes; 0=continuous halo, >0 comb N symmetrical rays according to angle (6=hexagram)
offset{ x?: number; y?: number }{ x: 0, y: 0 }The offset of the burst center relative to the center of the screen (CSS pixels), x is positive to the right, y is positive downward
mixBlendModestring"none"mix-blend-mode forwarded to the canvas; lighten and screen are useful for overlay compositions
classNamestring-Merge into root container (or reduced div)

Slots

SlotTypeDescription
fallbackReactNodereduced-motion / static alternative content without WebGL; default chart token radial light burst gradient

Usage Guidelines

  • The component covers the entire canvas, the parent container must be relative + overflow-hidden, and the overlay content must be absolute inset-0 / relative z-10, otherwise the content [[webgl-canvas-rendered-but-invisible-negative-zindex-covered]] will be covered.
  • WebGL client component ("use client"), ogl lazy loading and reuse useGlCanvas are safe for React StrictMode dual mounting; only fallback is rendered in the SSR stage.
  • colors is parsed by off-screen canvas when passing var(--color-…), must be prefixed with --color-, and the parsing of bare var(--primary) fails with [[oklch-css-var-color-must-parse-via-offscreen-canvas]].
  • Headless screenshots can capture a still or blank frame when rAF is throttled. Verify the burst on a real device or with Playwright measurements; see [[recharts-headless-screenshot-blank-clippath-animation-starved]].

Related

DotPattern · GridPattern · StripedPattern · Spotlight · RetroGrid · Ripple

Playground

<div className="relative h-56 overflow-hidden rounded-xl"
     style={{ background: "oklch(0.13 0.02 275)" }}>
  <PrismaticBurst
    intensity={2}
    speed={1}
    animationType="rotate"
    rayCount={0}
    distort={0}
    className="opacity-90"
  />
</div>
PreviousPrismDecorationNextRadar

On this page

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