SweetAlertOptions interface code example Example: how to use sweetalert <script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>