Components
npx shadcn@latest add https://21st.dev/r/meghtrix/background-componentsLoading preview...
// 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-white relative">
{/* White Sphere Grid Background */}
<div
className="absolute inset-0 z-0"
style={{
background: "white",
backgroundImage: `
linear-gradient(to right, rgba(71,85,105,0.3) 1px, transparent 1px),
linear-gradient(to bottom, rgba(71,85,105,0.3) 1px, transparent 1px),
radial-gradient(circle at 50% 50%, rgba(139,92,246,0.25) 0%, rgba(139,92,246,0.1) 40%, transparent 80%)
`,
backgroundSize: "32px 32px, 32px 32px, 100% 100%",
}}
/>
{/* Your Content/Components */}
</div>
);
};
export default Component;Loading preview...
Loading preview...
Loading preview...
Loading preview...
Loading preview...
Loading preview...
Loading preview...
Loading preview...
Loading preview...
Loading preview...
Loading preview...
Loading preview...
Loading preview...
Loading preview...
Loading preview...
Loading preview...
Loading preview...
Loading preview...
Loading preview...
Loading preview...
Loading preview...
Loading preview...
Loading preview...
Loading preview...
Loading preview...
Loading preview...
Loading preview...
Loading preview...
Loading preview...
Loading preview...
Loading preview...