altRequired | string | Not set | What the image shows; also the words the built-in error fallback prints |
aspectRatio | ImageAspectRatio | undefinedauto1:14:316:9 | auto | The frame's aspect ratio |
fallback | React.ReactNode | Not set | Replaces the built-in error fallback (band, glyph and the alt words) |
height | string | number | undefined | Not set | Height of the image container |
imgProps | Omit<React.ImgHTMLAttributes<HTMLImageElement>, "className" | "style" | "onLoad" | "onError" | "src" | "alt" | "height" | "width"> | undefined | Not set | Additional props for the underlying img element (except src/alt/size/style/events) |
objectFit | ImageObjectFit | undefinedcovercontain | cover | How the image fills the frame: cover crops, contain letterboxes on the band |
onImageError | React.ReactEventHandler<HTMLImageElement> | undefined | Not set | Called when the underlying img element fails to load |
onImageLoad | React.ReactEventHandler<HTMLImageElement> | undefined | Not set | Called when the underlying img element loads |
radius | ImageRadius | undefinednonenestedsurfacecontrol | none | Corner role. none leaves the corner to the container that clips it |
srcRequired | string | Not set | Image source URL |
width | string | number | undefined | Not set | Width of the image container |
className | string | undefined | Not set | Additional class name |
style | CSSProperties | undefined | Not set | Inline styles |