Img
Responsive image container with shapes, loading skeleton, error states, and aspect ratios.
Basic Image
Shapes
Aspect Ratios
Sizes
Skeleton Loading
Error State
Failed to load image
Reference
| Class | Description |
|---|---|
| .img | Base image container |
| .img-element | The <img> element inside container |
| .img-rounded | Rounded corners (radius-box) |
| .img-circle | Circular shape |
| .img-contain | Object-fit: contain |
| .img-cover | Object-fit: cover (default) |
| .img-fill | Object-fit: fill |
| .img-square | 1:1 aspect ratio |
| .img-video | 16:9 aspect ratio |
| .img-portrait | 3:4 aspect ratio |
| .img-landscape | 4:3 aspect ratio |
| .img-wide | 21:9 aspect ratio |
| .img-xs / sm / md / lg / xl | Fixed size variants (32-200px) |
| .img-loaded | Shows image, hides skeleton |
| .img-error | Shows error state |
| .img-skeleton | Shimmer loading placeholder |
| .img-placeholder | Icon placeholder |
| .img-error-display | Error state overlay |
| .img-lqip | Low-quality image placeholder (blur-up) |
| .img-fade | Fade-in animation on load |
| .img-zoom | Zoom-in animation on load |
| .img.glass | Glassmorphism variant |