Blur Image

Image with low-quality image placeholder (LQIP) blur-up effect. Shows a tiny blurred preview while the full image loads, then crossfades in.

Default

Pass src plus a base64 lqip data URL for the blur effect.

Dark previewReplay previewOpen in new tab
Mountain

Usage

Import the parts you need from the component's folder.

ts
import { BlurImage } from "@/components/ui/blur-image";

Without LQIP

Without lqip, falls back to a shimmer skeleton while loading.

Dark previewReplay previewOpen in new tab
Forest

API Reference

BlurImage

PropTypeDefaultDescription
srcstring—Full-resolution image URL.
lqipstring""Tiny placeholder data URL or low-quality preview source.
altstring""Alt text.
widthnumber | string—Used to compute aspect-ratio when both are set.
heightnumber | string—Used to compute aspect-ratio.
loadingstring"lazy"Native loading attribute.
imageClassstring | object | array""Classes applied to the inner img.
imageStylestring | object—Inline style for the inner img.