you can use this class in your javascript project
npm install sweetalert2;
or
add cdn link script in your project
and you must import sweetalert2 files in your web project
if you install with npm added this codes
---------------------------------------
import Swal from 'sweetalert2/dist/sweetalert2.js'
import 'sweetalert2/src/sweetalert2.scss'
if you use html pages added this codes
--------------------------------------------------
and add my codes
for example : Alert.successAlert({title : '', text:''});
Enjoy