Skip to content

    Browse components

    Streak Rain

    Streaks of light falling like rain across three depth layers, each with a glowing head and fading trail. WebGL.

    Streak Rain

    Open
    Customize

    Installation

    npx shadcn@latest add @glint-ui/streak-rain

    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/streak-rain.json

    Usage

    import { StreakRain } from "@/components/ui/streak-rain";
    
    <div className="relative h-96">
      <StreakRain colorA="#67e8f9" colorB="#a78bfa" />
    </div>

    Props

    PropTypeDefaultDescription
    colorAstring"#67e8f9"First streak color.
    colorBstring"#a78bfa"Second streak color.
    speednumber1Fall speed multiplier.
    densitynumber12Columns per container height (front layer).
    lengthnumber0.35Trail length, in container heights.
    glownumber1Brightness and bloom.
    classNamestring—Extra classes for the root element.