Image

An image from a URL. A click opens it full-screen. Set description to say what the image shows, unless it is only decoration.

Examples

Loading examples…

Props

PropTypeDescription
urlstringImage URL
descriptionstringWhat the image shows, for screen readers. Leave it unset only for a decorative image
variant"icon" | "avatar" | "smallFeature" | "mediumFeature" | "largeFeature" | "header"The size: "icon" 24px, "avatar" 40px round, "smallFeature" 160px wide, "largeFeature" and "header" full width. Default "mediumFeature": the natural size
weightnumberflex-grow in a Row or Column
aspectRatiostring
fit"cover" | "contain" | "fill" | "none" | "scaleDown"CSS object-fit. Default "cover"
radius"2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "full" | number | string | object
widthnumber | string
heightnumber | string
maxWidthnumber | string
maxHeightnumber | string
minWidthnumber | string
minHeightnumber | string
backgroundstring
frameboolean
positionstringCSS object-position, for example "top" or "50% 20%"
hideOnFailurebooleanDefault false
fallbackstringText shown in place of the image when it does not load
hoverZoombooleanA slight zoom on hover
lightboxbooleanDefault true: a click opens the image full-screen
actionOverlayobjectA button over the bottom-right corner of the image. Without href, it sends onOverlayClick

Events

  • onOverlayClick · Sent when the user clicks the actionOverlay button and it has no href.

Link to Image · All standard components

On this page