Skip to content

    Browse components

    Dot Wave

    A perspective field of dots rolling in layered sine waves, fading into the horizon. Canvas 2D.

    Open
    Customize

    Installation

    npx shadcn@latest add @glint-ui/dot-wave

    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/dot-wave.json

    Usage

    import { DotWave } from "@/components/ui/dot-wave";
    
    <div className="relative h-96">
      <DotWave color="#5eead4" farColor="#818cf8" />
    </div>

    Props

    PropTypeDefaultDescription
    colorstring"#5eead4"Color of the nearest dots.
    farColorstring"#818cf8"Color the dots blend toward on the horizon.
    speednumber1Animation speed multiplier.
    amplitudenumber1Wave height.
    scalenumber1Wave length; higher means tighter ripples.
    spacingnumber1Distance between dots; lower is denser.
    dotSizenumber2.4Radius of the nearest dots in px.
    classNamestring—Extra classes for the root element.