Single Image

Responsive image with aspect ratio control, captions, hover effects, and lazy loading — ready for commerce product shots, editorial headers, and content blocks.

Aspect Ratios

Fixed-ratio containers prevent layout shift during lazy load. Choose the ratio that matches your content slot.

Cat sitting on a surface
1 : 1
Mountain landscape at sunrise
4 : 3
Mountain landscape at sunrise
16 : 9
Mountain landscape at sunrise
21 : 9

Object-Fit Modes

Same container, different cropping strategy. object-cover fills and crops; object-contain letterboxes; object-fill stretches.

Portrait photo
object-cover — crops to fill
Portrait photo
object-contain — letterbox
Portrait photo
object-fill — stretches

Captions

Use figure + figcaption for accessible, SEO-friendly image descriptions.

Mountain at sunrise
Caption below — ideal for editorial and blog contexts.
Mountain at sunrise
Caption overlay — gradient fade from bottom
Mountain at sunrise
New

Hover Effects

Applied via Tailwind's group + transition utilities. No custom CSS needed.

Zoom on hover example
Zoom on hover
Dim on hover example
Dim + icon reveal
Slide caption example
Caption slides up on hover

Radius & Shape

Prefer --radius-sm by default. Full-circle avatars are a common commerce use-case (brand logos, team shots).

No radius
None
Small radius
radius-sm ✦
Large radius
rounded-xl
Circle
Circle

Loading States

Skeleton prevents layout shift. Alpine.js swaps classes once the image fires @load.

Skeleton (DaisyUI)
Watch product shot
Fade-in on load (Alpine)
Watch product shot
Blur-up LQIP (Alpine)

Commerce Contexts

Common placements for single images in a commerce builder: product card thumbnail, category header banner, brand logo, and full-width hero.

Classic timepiece

Classic Timepiece

Product card — 1:1 thumbnail

$249
Mountain outdoor category

Category

Outdoors & Adventure

Shop now

Sizes

Width is always fluid within the container; these variants control height via fixed aspect ratios, not hardcoded pixel values.

Small thumbnail
sm — avatar / thumbnail (w-16)
Medium card image
md — card image (w-40)
Hero image

lg — hero / editorial (full width, 21:9)