ObjectUIObjectUI

Image

Display images with optional fallback

Examples

Basic Image

Placeholder

With Sizing

Sized Image

Schema

interface ImageSchema {
  type: 'image';
  src: string;
  alt?: string;
  width?: number | string;
  height?: number | string;
  fallback?: string;
  fit?: 'contain' | 'cover' | 'fill' | 'none' | 'scale-down';
}

On this page