Components
Image component with a Low Quality Image Placeholder (LQIP) that shows a blurred placeholder and fades into the full image once it loads.
Loading preview...
import { LqipImage } from "@/components/ui/lqip-image";
export default function LqipImageDemo() {
return (
<div className="flex min-h-[420px] w-full items-center justify-center bg-background p-8">
<LqipImage
src="https://www.pulkit.page/_next/static/media/remote-demo.2njluikq47yyy.webp"
alt="Aerial view of ocean waves meeting the shore"
width={820}
height={324}
priority
sizes="820px"
className="rounded-xl"
containerClassName="rounded-xl border border-border shadow-sm"
/>
</div>
);
}