This component serves as a customizable background pattern block, featuring a radial gradient design with placeholder support. It allows users to apply additional styling through an optional className prop for seamless integration with existing styles.
import { cn } from "@/lib/utils";
import { PatternPlaceholder } from "@/components/shadcnblocks/pattern-placeholder";
interface BackgroundPattern2Props {
className?: string;
}
const BackgroundPattern2 = ({ className }: BackgroundPattern2Props) => {
return (
<section className={cn("relative min-h-screen w-full", className)}>
<PatternPlaceholder />
{/* Background Pattern */}
{/* Bottom Primary Radial Background Pattern */}
<div
className="absolute inset-0 z-0"
style={{
background:
"radial-gradient(125% 125% at 50% 90%, var(--background) 40%, var(--primary) 100%)",
}}
/>
</section>
);
};
export { BackgroundPattern2 };
npx shadcn@latest add @shadcnblocks/background-pattern2import { BackgroundPattern2 } from "@/components/background-pattern2"<BackgroundPattern2 />