Image

Renders an image.

Examples

Bars image

Contents

APIs

APIs

IImageProps

alt
string
Optional alt text for the image
className
string
Optional classname to add to the Image component.
containImage
boolean
Should the image be scaled down to fit the container? If true, we'll scale the image down / up to fit the container width, maintaining aspect ratio If width and height are both supplied, this will be overridden to true
height
number
Optional height; we'll emit a wrapper around the img tag
key
string
A unique identifier for this component.
role
string
Aria role to be applied to the img element
srcrequired
string
The url to use as the src of the <img> tag.
width
number
Optional width; we'll emit a wrapper around the img tag

Loaded Image page