meghtrix

Grid Background

Component 2

About

Here is Grid Background component

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

Code

How Grid Background is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

// This is file of your component
// You can use any dependencies from npm; we import them automatically in package.json

import { cn } from "@/lib/utils";
import { useState } from "react";

export const Component = () => {
  const [count, setCount] = useState(0);

  return (
    <div className="min-h-screen w-full bg-[#0f0f0f] relative text-white">
  {/* Hexagonal Pattern with Gap */}
  <div
    className="absolute inset-0 z-0 pointer-events-none"
    style={{
      backgroundImage: `
        repeating-linear-gradient(60deg, rgba(255, 0, 100, 0.2) 0, rgba(255, 0, 100, 0.2) 1px, transparent 1px, transparent 22px),
        repeating-linear-gradient(-60deg, rgba(0, 255, 200, 0.15) 0, rgba(0, 255, 200, 0.15) 1px, transparent 1px, transparent 22px),
        repeating-linear-gradient(0deg, rgba(255, 0, 100, 0.2) 0, rgba(255, 0, 100, 0.2) 1px, transparent 1px, transparent 22px)
      `,
      backgroundSize: "44px 44px",
    }}
  />
  {/* Your Content/Components */}
</div>

  );
};

export default Component;

More by meghtrix

View all
  • Background Components

    Background Components

    233
  • Gradient Backgrounds

    Gradient Backgrounds

    109
  • Background Gradient Glow

    Background Gradient Glow

    81
  • Gradient Blur Bg

    Gradient Blur Bg

    69
  • Radial Glow Background

    Radial Glow Background

    67