JD
Image
An intelligent image component with progressive loading, hover effects, and aspect ratio management.
Preview & Interactive Laboratory
Aspect Ratios
Square (1:1)

Video (16:9)

Wide (21:9)

Interactive Effects
Hover Zoom Effect

Hover over the image to see the smooth scale transition.
Feature Highlights
- Progressive blur-to-sharp loading
- Customizable loading placeholders
- Hardware-accelerated transitions
Progressive Loading
Every image includes a built-in loading state with a backdrop blur and pulse animation, ensuring a premium feel even on slower connections.
Usage & Implementation
import { CustomImage } from "@/components/ui/image"
<CustomImage
src="/hero.jpg"
aspectRatio="video"
hoverZoom
/>React / Tailwind
Granular Customization
1
Container
The image viewport.
className={`className`}2
Hover State
Scale and opacity transitions.
className={`hoverZoom={true}`}3
Placeholder
Initial blurred state.
className={`-`}API Reference (Props)
| Prop | Type | Default | Description |
|---|---|---|---|
| src | string | - | The image source URL. |
| aspectRatio | 'square' | 'video' | 'wide' | 'auto' | 'auto' | Force a specific dimension ratio. |
| hoverZoom | boolean | false | Enable the smooth zoom transition on hover. |
| priority | boolean | false | Whether to prioritize loading this image. |