Standard
Most often toast is placed inside a block with fixed
position, to appear on top of the content in the screen corner. Because of
it, toast messages in the example below may look a bit different from the
actual toasts for the active theme.
{%- call ui.util.call(show_example) -%}
{%- raw %}
{{ ui.toast("Hello, world!", title="Toast") }}
{{ ui.toast("Hello, world!", title="Toast", style="success") }}
{{ ui.toast("Hello, world!", title="Toast", style="warning") }}
{{ ui.toast("Hello, world!", title="Toast", style="danger") }}
{{ ui.toast("Hello, world!", title="Toast", style="info") }}
{%- endraw %}
{%- endcall %}