Standard

Only src and alt parameters are required for the image component. src specifies the URL of the image to be displayed, while alt provides alternative text for the image, which is important for accessibility and is displayed if the image cannot be loaded. Themes are likely to support additional parameters, such as width, height, or variant, which can be used to customize the appearance of the image, but these are not strict implementation requirements and must be checked in theme's documentation.

{%- call ui.util.call(show_example) -%} {%- raw %} {{ ui.image(src="https://placehold.co/600x400") }}
{{ ui.image(src="https://example.com/not-real.png", alt="Non-existing image") }} {%- endraw %} {%- endcall %}