Skip to main content

Image

An image is a graphic representation of something (e.g photo or illustration).

Examples​

Live demo

Properties​

NameTypeDefaultDescription
srcstringImage source URL.
altstringThe imageAlt attribute holds a text description of the image, which isn't mandatory but is incredibly useful for accessibility — screen readers read this description out to their users so they know what the image means. Alt text is also displayed on the page if the image can't be loaded for some reason: for example, network errors, content blocking, or linkrot.
titlestringPopup hint.
fitstringUsed to determine how the image is scaled and cropped to fit the frame. Allowed values: none, contain, cover, center, centerContain, centerCover
maximizeFramebooleanfalseIf true, the image frame will expand to fill its parent container.
borderWidthstringBorder width in pixels around control, e.g. 1. Multiple values separated with spaces can be provided to set border width for each of the sides: top right bottom left, e.g. 2 0 2 0.
borderColorstringBorder color around control. Multiple values separated with spaces can be provided to set border color for each of the sides: top right bottom left, e.g. yellow green blue gray.
borderStylestringBorder style around control: none (default), dotted, dashed, solid, double, groove, ridge, inset, outset. Multiple values separated with spaces can be provided to set border style for each of the sides: top right bottom left, e.g. solid none none none.
borderRadiusstringBorder radius in pixels, e.g. 5. Multiple values separated with spaces can be provided to set border style for each of the sides: top right bottom left, e.g. 10 10 0 0.