Skip to main content

Image

Container properties

All component configurations support Container properties at the first level.

Component Properties

NameTypeDefaultSupports Variable PatternDescription
classNamestring✔️component's className
styleobjectcomponent style
widthnumber | stringpicture width
heightnumber | stringimage height
srcstring✔️Image address
altstringpictures of alt

All the remaining componentsProps will be passed to the component root element (img).

JS API

The interface obtained through formApi.getFieldApi() is as follows:

NameTypeDescription
nodeHTML ElementThe root DOM element of the component