{{ attach_library('vue_js/modal') }}
{{ attach_library('vue_js/modal-vue') }}
{% verbatim %}
<section id="vue-modal" class="modal">
  <input v-model="content" type="text" name="content" />
  <a id="vue-modal=button" href="#" @click="showModal = true">Open Vue Modal</a>
  <transition name="modal" v-if="showModal" @close="showModal = false">
    <div class="modal__mask hidden"
      :style="{'display': 'block'}"
    >
      <div class="modal__modal">
        <div class="modal__content">
          <div class="content">{{ content }}</div>
          <div class="modal__button modal__close" @click="showModal = false">
            <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M14.59 8L12 10.59 9.41 8 8 9.41 10.59 12 8 14.59 9.41 16 12 13.41 14.59 16 16 14.59 13.41 12 16 9.41 14.59 8zM12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"/></svg>
          </div>
        </div>
      </div>
    </div>
  </transition>
</section>
{% endverbatim %}
