Browse components
Pin Matrix
A calm dot matrix that lights up around the cursor. Redraws only on movement.
Pin Matrix
Installation
npx shadcn@latest add @glint-ui/pin-matrixFirst time using @glint-ui? Add the registry to components.json once, or install by URL: npx shadcn@latest add https://glintui.vercel.app/r/pin-matrix.json
Usage
import { PinMatrix } from "@/components/ui/pin-matrix";
<div className="relative h-96">
<PinMatrix />
</div>Props
| Prop | Type | Default | Description |
|---|---|---|---|
| gap | number | 24 | Px between dots. |
| dotSize | number | 2 | Dot radius in px. |
| baseColor | string | "#3f3f46" | Idle dot color. |
| activeColor | string | "#c6ff3d" | Dot color near the cursor. |
| proximity | number | 120 | Px radius that lights up. |
| className | string | — | Extra classes for the root element. |