Browse components
Acid Squares
A grid of rounded squares cycling through acid neon colors in interfering waves; the cursor lights them up. WebGL.
Acid Squares
Installation
npx shadcn@latest add @glint-ui/acid-squaresFirst time using @glint-ui? Add the registry to components.json once, or install by URL: npx shadcn@latest add https://glint-ui-seven.vercel.app/r/acid-squares.json
Usage
import { AcidSquares } from "@/components/ui/acid-squares";
<div className="relative h-96">
<AcidSquares cellSize={28} />
</div>Props
| Prop | Type | Default | Description |
|---|---|---|---|
| colors | string[] | ["#c6ff3d","#00e5ff","#ff2bd6","#ffb800"] | Up to four colors the squares cycle through. |
| cellSize | number | 28 | Square size in px, gap included. |
| gap | number | 4 | Gap between squares in px. |
| speed | number | 1 | Wave speed multiplier. |
| cursorRadius | number | 180 | Px radius the cursor lights up. |
| className | string | — | Extra classes for the root element. |