Skip to content

    Browse components

    Spark Waves

    Glowing sine waves braid across the stage and shed drifting sparks from their crests. Canvas 2D.

    Open
    Customize

    Installation

    npx shadcn@latest add @glint-ui/spark-waves

    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/spark-waves.json

    Usage

    import { SparkWaves } from "@/components/ui/spark-waves";
    
    <div className="relative h-96">
      <SparkWaves colors={["#22d3ee", "#a78bfa", "#f472b6"]} />
    </div>

    Props

    PropTypeDefaultDescription
    colorsstring[]["#22d3ee","#a78bfa","#f472b6"]One color per wave.
    wavesnumber3Number of waves.
    amplitudenumber70Wave height in px.
    speednumber1Animation speed multiplier.
    sparkRatenumber1How eagerly the crests shed sparks.
    lineWidthnumber1.5Core line width in px.
    classNamestring—Extra classes for the root element.