deleted

interactive-grid

Component 22

About

here is interactive dot grid animation

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds interactive-grid to your project and fits it to your theme.

Code

How interactive-grid is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import React from 'react';
import Component from '@/components/ui/interactive-grid';

function ComponentDemo() {
  return (
    <main className="flex min-h-screen w-full flex-col items-center justify-center bg-white dark:bg-black">
      <div className="relative h-[60vh] w-full max-w-4xl overflow-hidden rounded-lg border bg-slate-100 dark:border-slate-800 dark:bg-slate-900/50">
        <Component
          dotSize={8}
          gap={12}
          baseColor="#1e293b"
          activeColor="#64748b"
          proximity={100}
          shockRadius={200}
        />
        <div className="pointer-events-none absolute inset-0 flex items-center justify-center">
          <h2 className="text-center text-4xl font-bold text-slate-800 dark:text-slate-200">
            Interactive Dot Grid
            <p className="mt-2 text-base font-normal text-slate-600 dark:text-slate-400">
              Move your mouse and click to see the effect.
            </p>
          </h2>
        </div>
      </div>
    </main>
  );
}

export default ComponentDemo;

Dependencies

More by deleted

View all
  • Splash Cursor

    Splash Cursor

    1.3K
  • Star Border

    Star Border

    728
  • Tilted Scroll

    Tilted Scroll

    433
  • Waves Background

    Waves Background

    362
  • Squares Background

    Squares Background

    326
  • Prism

    Prism

    218
  • Grid Motion

    Grid Motion

    183
  • Circular Gallery

    Circular Gallery

    173