About
A full width background box container that highlights on hover
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Background Boxes to your project and fits it to your theme.
Code
How Background Boxes is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
"use client";
import React from "react";
import { Boxes } from "@/components/ui/background-boxes"
import { cn } from "@/lib/utils";
export function BackgroundBoxesDemo() {
return (
<div className="h-96 relative w-full overflow-hidden bg-slate-900 flex flex-col items-center justify-center rounded-lg">
<div className="absolute inset-0 w-full h-full bg-slate-900 z-20 [mask-image:radial-gradient(transparent,white)] pointer-events-none" />
<Boxes />
<h1 className={cn("md:text-4xl text-xl text-white relative z-20")}>
Tailwind is Awesome
</h1>
<p className="text-center mt-2 text-neutral-300 relative z-20">
Framer motion is the best animation library ngl
</p>
</div>
);
}















