vue-sweetalert2
Vue.js wrapper for SweetAlert2.
Get started
npm install -S vue-sweetalert2
or
yarn add vue-sweetalert2
// main.js
import Vue from 'vue';import VueSweetalert2 from 'vue-sweetalert2'; Vue.use(VueSweetalert2);
Now in the global object, you can access all the methods of sweetalret2.
// example-vue-component.vue
Hello world
// Or
Vue.swal('Hello Vue world!!!');
The documentation for sweetalert2, you can find here.