Back to Component Explorer
Laser Matrix Grid Beam
backgroundsTraveling high-velocity laser beam pulses racing across a cybernetic circuit grid.
#laser#grid#beam#circuit#background
Live Interactive Preview
Grid Beam Ray
Component Source Code
Select language in the dropdownGridBeam.tsx
1'use client';23import React from 'react';45export default function GridBeam() {6 return (7 <div className="relative h-64 w-full max-w-md overflow-hidden rounded-3xl border border-slate-200 dark:border-slate-800 bg-slate-950 flex flex-col items-center justify-center p-6 select-none">8 <div className="absolute inset-0 bg-[linear-gradient(to_right,#0f172a_1px,transparent_1px),linear-gradient(to_bottom,#0f172a_1px,transparent_1px)] bg-[size:32px_32px]" />9 10 <div className="absolute top-1/2 left-0 right-0 h-[2px] bg-gradient-to-r from-transparent via-cyan-400 to-transparent shadow-[0_0_15px_#22d3ee] animate-[pulse_2s_ease-in-out_infinite]" />11 <div className="absolute top-0 bottom-0 left-1/2 w-[2px] bg-gradient-to-b from-transparent via-blue-500 to-transparent shadow-[0_0_15px_#3b82f6] animate-[pulse_3s_ease-in-out_infinite]" />1213 <div className="relative z-10 text-center">14 <h3 className="text-xl font-extrabold text-white">Laser Circuit Matrix</h3>15 <p className="text-xs text-cyan-400/80 mt-1">High-speed intersecting energy pulses.</p>16 </div>17 </div>18 );19}Installation & Integration Guide
Step 1: Tailwind CSS v4 Setup
Tailwind DocsIf you do not have Tailwind installed yet, run this installation command:
Terminal
npm install tailwindcss @tailwindcss/postcss postcss
Then add the Tailwind directive to your main stylesheet (globals.css):
@import "tailwindcss";
Step 2: Install Icon Dependencies
npm install lucide-react react-icons
Step 3: Add Component File
Create a new file in your project at src/components/backgrounds/GridBeam.tsx and paste the copied code from the source viewer above.
Step 4: Usage Example
ExamplePage.tsx
1import LaserMatrixGridBeam from '@/components/backgrounds/GridBeam';23export default function ExamplePage() {4 return (5 <main className="p-8 flex items-center justify-center min-h-screen">6 <LaserMatrixGridBeam />7 </main>8 );9}