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 relative">
{/* Pixel Grid Pattern */}
<div
className="absolute inset-0 z-0"
style={{
backgroundColor: '#000000',
backgroundImage: `
linear-gradient(#333333 1px, transparent 1px),
linear-gradient(90deg, #333333 1px, transparent 1px)
`,
backgroundSize: '8px 8px',
imageRendering: 'pixelated',
}}
/>
{/* Your Content Here */}
</div>
);
};
export default Component;