{% stories alert with { title: 'Components/alert' } %}

{% story default with {
    name: 'alert messages',
    args: { type: 'status', messages: 'Success! Your action was completed.' }
  } %}

   
{% set contents = [
    { (type): [(messages)] },
    { "error": ["Something went wrong."] },
    { "warning": ["Please check your input."] }
] %}

{% for content in contents %}
{% embed 'tailpine:alert' with { content: content } %}
{% block  alert %} {% endblock %}
{% endembed %}
{% endfor %}

{% endstory %}
{% endstories %}
