Skip to Content
🎉Introducing Pumki UI
BackgroundsLight Rays

Light Rays Background 🌌

This component creates a mesmerizing light rays background effect, perfect for adding a dynamic and immersive atmosphere to your web applications.

The rays can be customized in terms of origin, color, speed, and more.
Pumki UIPumki UI

Installation

Usage


1import LightRays from '@/components/pumki-ui/backgrounds/bg-light-rays';

1<LightRays />

Props

PropTypeDefaultDescription
raysOrigin”top-center” | “top-left” | “top-right” | “right” | “left” | “bottom-center” | “bottom-right” | “bottom-left""top-center”Where the light rays originate from.
raysColorstring”#ffffff”Hex color of the rays.
raysSpeednumber1Speed of the ray animation.
lightSpreadnumber1How widely the rays spread out.
rayLengthnumber2How far the rays extend.
pulsatingbooleanfalseWhether the rays pulsate.
fadeDistancenumber1.0Fade-out distance factor for the rays.
saturationnumber1.0Color saturation adjustment (0 = grayscale, 1 = full color).
followMousebooleantrueIf true, rays will follow the mouse movement.
mouseInfluencenumber0.1How much the mouse influences ray direction.
noiseAmountnumber0.0Amount of static/noise overlay on the rays.
distortionnumber0.0Distortion intensity for ray angles.
classNamestring""Custom Tailwind classes for the wrapper container.
Last updated on