Skip to Content
EnComponentsImage

Image

The Image component is a container for responsive images.

Playground

Props

Examples

Fixed Square Sizes

16x1632x3264x64128x128

Responsive Images with Ratios

16 by 9

16by9

4 by 3

4by3

1 by 1

1by1

Props

PropTypeDefaultDescription
altstring-The accessible alternative text (required).
classNamestring-Additional CSS classes.
preloadbooleanfalsePreloads the image.
qualitynumber80The quality of the image (1-100).
ratioThemeImageRatio-Sets the aspect ratio of the image.
roundedbooleanfalseApplies rounded corners to the image.
sizeThemeImageSize | { w: number; h: number }-Sets the size of the image container.
srcstring-The source URL of the image.
zoombooleanfalseEnables clicking on the image to open it in a showcase.

See also

Last updated on