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 overflow-hidden">
<div
className="absolute inset-0 z-0 pointer-events-none"
style={{
background: `
linear-gradient(
90deg,
transparent 0%,
transparent 30%,
rgba(138, 43, 226, 0.4) 50%,
transparent 70%,
transparent 100%
),
linear-gradient(
to bottom,
#1a1a2e 0%,
#2d1b69 50%,
#0f0f23 100%
)
`,
backgroundImage: `
repeating-linear-gradient(
90deg,
transparent 0px,
transparent 79px,
rgba(255, 255, 255, 0.05) 80px,
rgba(255, 255, 255, 0.05) 81px
)
`,
}}
/>
{/* Your Content Here */}
</div>
);
};
export default Component;