Components
Loading preview...
Here is Grid Background component
npx shadcn@latest add https://21st.dev/r/meghtrix/grid-background// 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-[#0f172a] relative">
{/* Dark Dotted Grid Background */}
<div
className="absolute inset-0 z-0"
style={{
background: "#0f172a",
backgroundImage: `
radial-gradient(circle, rgba(139,92,246,0.6) 1px, transparent 1px),
radial-gradient(circle, rgba(59,130,246,0.4) 1px, transparent 1px),
radial-gradient(circle, rgba(236,72,153,0.5) 1px, transparent 1px)
`,
backgroundSize: "20px 20px, 40px 40px, 60px 60px",
backgroundPosition: "0 0, 10px 10px, 30px 30px",
}}
/>
{/* Your Content/Components */}
</div>
);
};
export default Component;