Skip to main content

Image

A default image component.

This component is used to render images.

Properties

PropertyTypeDefaultDescription
filestringnullThe file of the image.
altstringnullThe alt text of the image.
widthnumberautoThe width of the image.
heightnumberautoThe height of the image.
unitstringpxThe unit of the width and height. px, rem, em, %, vw, vh, vmin, vmax.
fitstringcoverThe fit of the image. cover, contain, fill, none, scale-down.
padding.leftnumber0The left padding of the container.
padding.rightnumber0The right padding of the container.
padding.topnumber0The top padding of the container.
padding.bottomnumber0The bottom padding of the container.
margin.leftnumber0The left margin of the container.
margin.rightnumber0The right margin of the container.
margin.topnumber0The top margin of the container.
margin.bottomnumber0The bottom margin of the container.