animated-leaves-default
"use client"
import { AnimatedLeaves } from "@/components/ui/backgrounds/animated-leaves"
export function DemoOne() {
return (
<div className="relative flex h-[500px] w-full flex-col items-center justify-center overflow-hidden rounded-xl border">
<AnimatedLeaves />
</div>
)
}
pnpm dlx shadcn@latest add "https://ui.dalim.in/r/animated-leaves-default.json"
Installation
pnpm dlx shadcn@latest add https://ui.dalim.in/r/styles/default/animated-leaves.json
Usage
import { AnimatedLeaves } from "@/components/ui/animated-leaves"
<div className="relative h-screen w-full overflow-hidden">
<AnimatedLeaves />
<div className="absolute inset-0 z-10 flex items-center justify-center">
<p className="text-xl font-semibold">Content over animated leaves</p>
</div>
</div>