Dikkat:
Örnekler İçin Tıkla<script src="https://cdn.jsdelivr.net/npm/sweetalert2@9"> </script>
$ npm install sweetalert --save
<button class="btn btn-info"></button>
onClick
<button class="btn btn-info" onClick="tikla()"></button>
<script> function tikla() { Swal.fire('Öylesine Bir Mesaj') } </script>
<script> function cssile() { Swal.fire('Öylesine Bir Mesaj') } </script>
<style> .swal2-popup { background-color: #252525; color: #fff; border-radius: 1rem; } .swal2-title, .swal2-content { color: #fff; } </style>
$ npm install @sweetalert2/theme-dark
<link rel="stylesheet" href="@sweetalert2/themes/dark/dark.css"> <script src="sweetalert2/dist/sweetalert2.min.js"> </script>