<image>
Displays a PNG, JPEG, WebP, GIF or BMP image, like an <img>. It loads bundled assets, remote URLs and base64 data URIs.
Usage
src/app/avatar.ts
Import LYNX_ELEMENTS in your component (see Elements).
Warning
Give every <image> a width and height. Unlike <img>, it has no size of its own, and Lynx doesn't load an image whose box is 0×0.
Attributes
Plus the common attributes, such as id, class and style.
Events
Read the payload from $event.detail (see Handling taps and events).
Plus the common events, such as bindtap.
Methods
These UI methods (Glossary) control animated images on iOS and Android. Call them with invoke() on the element (see Call element methods).
Related
<svg>: vector images- CSS on Lynx: sizing, borders and
background-image - Call element methods
