ExpImage
.
This component helps in handling images from the admin panel.
ExpImage
component is responsible for rendering customized images based on different configurations. It accepts a variety of props including src, name, height, width, alt, title, style, lazyLoad, retina, preLoad, options, navigationUrl, and navigationTarget. Many of these attributes mirror those typically used in standard HTML image tags.
The ExpImage
component accepts the following props:
Prop | Details |
---|---|
src | Image data you which you are getting from the admin panel or a simple image link will also work same a HTML image tag. |
name | The name of the image, if you are using this component for multiple times in same component or page then make sure you pass a unique name |
height | The height of the <img> tag. |
width | The width of the <img> |
height | The height of the <img> element. |
alt | Alt text for the image |
title | Title for the image |
style | To provide a inline style for image |
lazyLoad | The flag to load the image lazy by default value for this will be false . |
preload | The flag to preload image, by default value for this will be false . If you want to prealod the image then you need to pass true for the component |
className | Class names which you want to apply to the image tag you can pass it to this prop as a string |
retina | This boolean value will be specifying the to add 2x images to srcSet for Retina display |
options | This prop will be used to specify the image options for the picture tag and the image optimization. |
ExpCustomImageRenderer
.