Image
Image is used for large format, responsive images.
Anchor to imagepropsImageProps
The URL of the image. Supports the resolution
and conditional styles only.
An alternative text description that describe the image for the reader to understand what it is about. It is extremely useful for both buyers using assistive technology and sighted buyers. A well written description
provides people with visual impairments the ability to participate in consuming non-text content. When a screen readers encounters an Image
, the description is read and announced aloud. If an image fails to load, potentially due to a poor connection, the description
is displayed on screen instead. This has the benefit of letting a sighted buyer know an image was meant to load here, but as an alternative, they’re still able to consume the text content. Read considerations when writing alternative text to learn more.
Sets the semantic meaning of the component’s content. When set, the role will be used by assistive technologies to help buyers navigate the page.
Displays the image at the specified aspect ratio (fills the width of the parent container and sets the height accordingly) and creates an invisible placeholder to prevent content jumping when the image loads. Use along with fit
if the specified aspect ratio does not match the intrinsic aspect ratio to prevent the image from stretching.
Adjust the border style.
To shorten the code, it is possible to specify all the border style properties in one property.
For example:
base
means blockStart, inlineEnd, blockEnd and inlineStart border styles arebase
['base', 'none']
means blockStart and blockEnd border styles arebase
, inlineStart and inlineEnd border styles arenone
['base', 'none', 'dotted', 'base']
means blockStart border style isbase
, inlineEnd border style isnone
, blockEnd border style isdotted
and blockStart border style isbase
Adjust the border width.
To shorten the code, it is possible to specify all the border width properties in one property.
For example:
base
means blockStart, inlineEnd, blockEnd and inlineStart border widths arebase
['base', 'medium']
means blockStart and blockEnd border widths arebase
, inlineStart and inlineEnd border widths aremedium
['base', 'medium', 'medium', 'base']
means blockStart border width isbase
, inlineEnd border width ismedium
, blockEnd border width ismedium
and blockStart border width isbase
Adjust the corner radius.
Provide a single value to apply the same corner radius to all four corners, two values to apply different corner radii to opposing corners, or four values to apply different corner radii to each individual corner.
For example:
base
means all 4 corner radii arebase
['base', 'none']
means the StartStart and EndEnd corner radii arebase
, StartEnd and EndStart corner radii arenone
. When the context’s language direction is left to right, StartStart and EndEnd corners are the top left and bottom right corners while StartEnd and EndStart corners are the top right and bottom left corners.['base', 'none', 'small', 'base']
means StartStart corner radius isbase
, StartEnd corner radius isnone
, EndEnd corner radius issmall
and EndStart corner radius isbase
A alias is available for this property. When both are specified,
takes precedence.
Indicates how the image fits in its frame. Use if the image is not displayed at its intrinsic size to maintain the aspect ratio.
A unique identifier for the component.
Indicates how the browser should load the image, either eager or lazy.
Uses native browser behavior and is not supported by all browsers. If no value is provided then the image is loaded immediately, regardless of whether or not the image is currently within the visible viewport.
Basic Image
Preview

Anchor to loadingLoading
Value | Description |
---|---|
"eager" | Image is loaded immediately, regardless of whether or not the image is currently within the visible viewport. |
"lazy" | Image is loaded when it’s within the visible viewport. |