Skip to content

    Browse components

    Bayer Waves

    Flowing waves rendered with 8x8 ordered Bayer dithering in two colors; the cursor sends ripples through them. WebGL.

    Bayer Waves

    Open
    Customize

    Installation

    npx shadcn@latest add @glint-ui/bayer-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/bayer-waves.json

    Usage

    import { BayerWaves } from "@/components/ui/bayer-waves";
    
    <div className="relative h-96">
      <BayerWaves color="#c6ff3d" pixelSize={3} />
    </div>

    Props

    PropTypeDefaultDescription
    colorstring"#c6ff3d"Ink color of the lit dots.
    backgroundstring"#0a0a0c"Background color between the dots.
    pixelSizenumber3Size of one dither pixel in px.
    speednumber1Wave speed multiplier.
    scalenumber1Zoom; higher means broader waves.
    interactivebooleantrueCursor sends ripples through the waves.
    classNamestring—Extra classes for the root element.