Skip to content

    Browse components

    Pin Matrix

    A calm dot matrix that lights up around the cursor. Redraws only on movement.

    Pin Matrix

    Open
    Customize

    Installation

    npx shadcn@latest add @glint-ui/pin-matrix

    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/pin-matrix.json

    Usage

    import { PinMatrix } from "@/components/ui/pin-matrix";
    
    <div className="relative h-96">
      <PinMatrix />
    </div>

    Props

    PropTypeDefaultDescription
    gapnumber24Px between dots.
    dotSizenumber2Dot radius in px.
    baseColorstring"#3f3f46"Idle dot color.
    activeColorstring"#c6ff3d"Dot color near the cursor.
    proximitynumber120Px radius that lights up.
    classNamestring—Extra classes for the root element.