animated-gradient-default
"use client"
import { AnimatedGradient } from "@/components/ui/backgrounds/animated-gradient"
export function DemoOne() {
return (
<div className="relative flex h-[500px] w-full flex-col items-center justify-center overflow-hidden rounded-xl border">
<AnimatedGradient />
<div className="absolute h-full w-full bg-red-500 mix-blend-color-burn" />
</div>
)
}
pnpm dlx shadcn@latest add "https://ui.dalim.in/r/animated-gradient-default.json"
Installation
pnpm dlx shadcn@latest add https://ui.dalim.in/r/styles/default/animated-gradient.json
Usage
import { AnimatedGradient } from "@/components/animated-gradient"
<div className="relative h-screen w-full overflow-hidden">
{/* Animated background */}
<AnimatedGradient className="opacity-80" />
{/* Foreground content */}
<div className="relative z-10 flex h-full items-center justify-center text-3xl font-bold text-white">
Neon Vibes ✨
</div>
</div>
API Reference
Prop | Type | Default | Description |
---|---|---|---|
className | string | – | Optional CSS class name to apply custom styles or positioning |