Open Source — Sweet Alert 2
A beautiful, responsive, customizable, accessible replacement for JavaScript’s popup boxes — With zero dependencies.

Hey everyone — Happy Open Source Friday! Today I want to show you Sweet Alert 2. Sweet Alert 2 is a replacement for default JavaScript pop up boxes. It needs zero dependencies, and is customizable and responsive.
It’s extremely simple to use, just install or require it:
npm install --save sweetalert2** OR **<script src="sweetalert2/dist/sweetalert2.all.min.js"></script>
And then use it in one line of code (just like you would use alert()
):
swal('Hello world!')


Get Sweet Alert 2
Head on over to the Sweet Alert 2 website to learn more and to view code examples. You can also view the project on GitHub for full source code and to report issues/bugs.
Closing Notes:
Thanks for reading! If you’re ready to finally learn Web Development, check out: The Ultimate Guide to Learning Full Stack Web Development in 6 months.
I publish 4 articles on web development each week. Please consider entering your email here if you’d like to be added to my once-weekly email list, or follow me on Twitter.