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-black relative">
{/* Dark Noise Colored Background */}
<div
className="absolute inset-0 z-0"
style={{
background: "#000000",
backgroundImage: `
radial-gradient(circle at 1px 1px, rgba(139, 92, 246, 0.2) 1px, transparent 0),
radial-gradient(circle at 1px 1px, rgba(59, 130, 246, 0.18) 1px, transparent 0),
radial-gradient(circle at 1px 1px, rgba(236, 72, 153, 0.15) 1px, transparent 0)
`,
backgroundSize: "20px 20px, 30px 30px, 25px 25px",
backgroundPosition: "0 0, 10px 10px, 15px 5px",
}}
/>
{/* Your Content/Components */}
</div>
);
};
export default Component;