SweetAlert2
A beautiful, responsive, customizable, accessible (WAI-ARIA) replacement for JavaScript's popup boxes
About
SweetAlert2 is a library which is really easy to install and use. Its main usage is to alert the user with whatever info you want. The alerts are styled to be very clean and minimalistic. That way, they can fit into any application you are building!
Demo
A basic message | |
A title with a text under | |
A modal with a title, an error icon, a text, and a footer | |
A modal window with a long content inside: | |
Custom HTML description and buttons with ARIA labels | |
A custom positioned dialog | |
A confirm dialog, with a function attached to the "Confirm"-button... | |
... and by passing a parameter, you can execute something else for "Cancel". | |
A message with a custom image | |
A message with auto close timer |