Skip to content

    Browse components

    God Rays

    Soft god rays streaming from an edge or corner, swaying gently and leaning toward the cursor. WebGL.

    God Rays

    Open
    Customize
    top-center
    top-left
    top-right
    left
    right
    bottom-center
    center

    Installation

    npx shadcn@latest add @glint-ui/god-rays

    First time using @glint-ui? Add the registry to components.json once, or install by URL: npx shadcn@latest add https://glintui.vercel.app/r/god-rays.json

    Usage

    import { GodRays } from "@/components/ui/god-rays";
    
    <div className="relative h-96">
      <GodRays origin="top-center" color="#d9f0ff" />
    </div>

    Props

    PropTypeDefaultDescription
    origin"top-center" | "top-left" | "top-right" | "left" | "right" | "bottom-center" | "center""top-center"Where the rays come from.
    colorstring"#d9f0ff"Ray color.
    speednumber1Animation speed multiplier.
    spreadnumber0.6Cone half-width in radians.
    lengthnumber1.2Reach, in container heights.
    intensitynumber1Brightness.
    followMousenumber0.4How much the beam leans toward the cursor.
    classNamestring—Extra classes for the root element.