sweetalert2 in vanilla js example
Example 1: sweetalert2
$ npm install sweetalert2
Example 2: sweetalert2 example html
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@10"></script>
$ npm install sweetalert2
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@10"></script>