Browse components
Bayer Waves
Flowing waves rendered with 8x8 ordered Bayer dithering in two colors; the cursor sends ripples through them. WebGL.
Bayer Waves
Installation
npx shadcn@latest add @glint-ui/bayer-wavesFirst 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
| Prop | Type | Default | Description |
|---|---|---|---|
| color | string | "#c6ff3d" | Ink color of the lit dots. |
| background | string | "#0a0a0c" | Background color between the dots. |
| pixelSize | number | 3 | Size of one dither pixel in px. |
| speed | number | 1 | Wave speed multiplier. |
| scale | number | 1 | Zoom; higher means broader waves. |
| interactive | boolean | true | Cursor sends ripples through the waves. |
| className | string | — | Extra classes for the root element. |