{% import 'components/hljs.html' as hljs %} {% import 'components/panel.html' as panel %}

{{ title }}

{% set description %} Sweet Alert automatically centers itself on the page and looks great no matter if you're using a desktop computer, mobile or tablet. It's even highly customizable, as you can see below. Please read the official plugin documentation for a full list of options. {% endset %} {% call panel.component(title=title, description=description) %}

{% call hljs.component() -%} {%- endcall %} {% endcall %} {% call panel.component(title='Title & Subtitle') %}

{% call hljs.component() -%} {%- endcall %} {% endcall %} {% call panel.component(title='Success') %}

{% call hljs.component() -%} {%- endcall %} {% endcall %}
{% call panel.component(title='Confirm', description='A warning message, with a function attached to the confirm button.') %}

{% call hljs.component() -%}
{%- endcall %} {% endcall %} {% call panel.component(title='Confirm and Cancel', description='And by passing a parameter, you can execute something else for Cancel.') %}

{% call hljs.component() -%}
{%- endcall %} {% endcall %}