m-img
Adds an image
Attributes
Attribute | Default Value | Description |
---|---|---|
src | Required. URL of the image | |
width | Required. Width of the image | |
height | Height of the image | |
alt | Alt text shown if the image fails to load | |
href | If set, turns the image into a clickable link | |
border-radius | Border radius | |
inline | Display as inline | |
font-family | Verdana, Arial, Helvetica, sans-serif | Font family used for rendering the alt text |
font-size | 14px | Font size for the alt text |
color | #000000 | Text color for the alt text |
Example
html
<m-img src="img/logo.png" href="https://pixcraft.io" width="100" height="60" alt="logo"></m-img>