Brickslab.Toolsv2.1.1

@brickslab./ui-web

Perspective 3D synthwave-style grid with perspective zoom animation and optional glow

Synthwave

Props

PropTypeDéfautRequisDescription
perspectivenumber12003D perspective distance
lineThicknessnumber1Width of grid lines
glowbooleanfalseApply glowing effect to lines
speednumber8Animation speed in seconds
Override rapide

Tous les paramètres listés dans cette table sont overrideables via les props. Utilisez ce squelette comme point de départ.

<MyComponent
  perspective={1200}
  lineThickness={1}
  glow={false}
  speed={8}
/>
perspectivelineThicknessglowspeed

Usage

tsx
import { RetroGrid } from "@brickslab./ui-web";

export function MyComponent() {
  return (
    <div className="relative w-full h-screen bg-black">
      <RetroGrid perspective={1200} lineThickness={1} glow speed={8} />
      <div className="absolute inset-0 flex items-center justify-center">
        <h1 className="text-4xl font-bold text-white">Synthwave Grid</h1>
      </div>
    </div>
  );
}

Variations

No Glow Effect

Clean Retro

Close Perspective

Close View