Skip to main content

Installation

    Usage

    showLineNumbers
    import { LightRays } from "@/components/ui/light-rays"
    
    showLineNumbers
    <div className="relative h-96 w-full">
      <LightRays count={7} color="rgba(160, 210, 255, 0.2)" />
    </div>
    

    Props

    PropTypeDefaultDescription
    countnumber7The number of light rays to render.
    colorstringrgba(160, 210, 255, 0.2)The color of the light rays (CSS color value).
    blurnumber36The blur amount in pixels.
    speednumber14The animation speed (cycle duration in seconds).
    lengthstring70vhThe length of the rays (CSS length value).
    classNamestring-Additional class names for the container.
    refReact.Ref<HTMLDivElement>-Ref for the container element.
    …restReact.HTMLAttributes<HTMLDivElement>-All standard div HTML attributes are supported.

    Build docs developers (and LLMs) love