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

LightPillar

light-pillar

Raymarches a vertical volumetric light column with noise and two-color shading.

Usage

Basic usage

The default top/bottom color is chart token, and the component comes with absolute inset-0 z-0.

LightPillar
tsx
<div className="relative h-64 overflow-hidden rounded-xl"
     style={{ background: "oklch(0.12 0.02 270)" }}>
  <LightPillar />
  <div className="relative z-10 flex h-full items-center justify-center text-sm font-medium text-white/80">
    LightPillar
  </div>
</div>

Customized two-color (original purple→pink)

topColor / bottomColor Gradient blending along the y axis creates color depth.

tsx
<div className="relative h-64 overflow-hidden rounded-xl"
     style={{ background: "oklch(0.12 0.02 270)" }}>
  <LightPillar topColor="#5227FF" bottomColor="#FF9FFC" intensity={1.1} />
</div>

Fine laser (narrow column·no particles)

pillarWidth fine tune + glowAmount brighten, noiseIntensity=0 remove grain.

tsx
<div className="relative h-64 overflow-hidden rounded-xl"
     style={{ background: "oklch(0.12 0.02 270)" }}>
  <LightPillar pillarWidth={1.4} glowAmount={0.009} noiseIntensity={0} intensity={1.2} />
</div>

Tilt light beam (slow rotation)

pillarRotation makes the light beam slant, and rotationSpeed slows down the rotation.

tsx
<div className="relative h-64 overflow-hidden rounded-xl"
     style={{ background: "oklch(0.12 0.02 270)" }}>
  <LightPillar pillarRotation={30} rotationSpeed={0.15} pillarWidth={2.4} />
</div>

When to Use

Use LightPillar when a centered hero needs one continuous volumetric beam rather than a field of independent rays. Its narrow control range supports anything from a soft column to a laser-like line. Choose Lightning for branching arcs, LightRays for rays from an origin, or Lightfall for multiple falling streaks.

Import

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

Props

NameTypeDefaultDescription
topColorstringvar(--color-chart-2)Beam color at the top; accepts any CSS color and defaults to a theme-aware chart token
bottomColorstringvar(--color-chart-1)Beam color at the bottom, blended with topColor along the Y axis
intensitynumber1Overall brightness multiplier
rotationSpeednumber0.3Rotation and internal-wave speed multiplier; 0 freezes both at their initial state
glowAmountnumber0.005Gain applied to accumulated raymarch energy before compression; 0.001-0.02 is recommended
pillarWidthnumber3Beam radius in world units; lower values create a thinner, laser-like column
pillarHeightnumber0.4Vertical texture scale; higher values pack the internal bands more closely
noiseIntensitynumber0.5Screen-space grain strength; 0 renders a clean beam
pillarRotationnumber0Beam tilt in degrees, applied by rotating the sampling plane
classNamestring-Class name forwarded to the canvas container or fallback root

Slots

SlotTypeDescription
fallbackReactNodeDecorative content rendered inside the static two-color token gradient when reduced motion is enabled; the fallback root is aria-hidden

Usage Guidelines

  • LightPillar is a full-size decorative layer. Use a relative overflow-hidden parent with an explicit height and place foreground content above it with relative z-10.
  • During SSR, the live root has no canvas. After hydration, a canvas is appended before OGL import and scene setup; if either step fails, that uninitialized or blank canvas remains and LightPillar does not switch to the reduced-motion fallback. Reduced motion instead renders the static two-color beam plus decorative fallback content.
  • glowAmount is intentionally small (0.005 by default). Adjust it in small increments such as 0.009; large increases quickly clip the beam to white.
  • CSS variables for topColor and bottomColor require full token names such as var(--color-chart-1). See [[hulian-token-color-var-needs-color-prefix]].
  • If a full-size canvas is present but hidden, inspect parent backgrounds and stacking contexts; see [[webgl-canvas-rendered-but-invisible-negative-zindex-covered]].

Related

DotPattern · GridPattern · StripedPattern · Spotlight · RetroGrid · Ripple

Playground

<div className="relative h-64 overflow-hidden rounded-xl"
     style={{ background: "oklch(0.12 0.02 270)" }}>
  <LightPillar
    intensity={1}
    rotationSpeed={0.3}
    pillarWidth={3}
    noiseIntensity={0.5}
  />
</div>
PreviousLightningDecorationNextLightRays

On this page

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