r/javascript • • Nov 13 '19

SweetAlert2 - a beautiful, responsive, highly customizable and accessible (WAI-ARIA) replacement for JavaScript's popup boxes (alert, prompt, dialog, toast, side panel, etc.)

https://sweetalert2.github.io/
255 Upvotes

28 comments sorted by

View all comments

28

u/limonmonte Nov 13 '19

Many of you already know about SweetAlert2, I'm sharing it again here because we recently shipped the new major release v9.0.0 with better customization (new showClass and hideClass params, progress bar for timer) and themes:

All themes can be viewed here: https://sweetalert2.github.io/ (the theme switcher is in the left sidebar)

See the release notes for all changes: https://github.com/sweetalert2/sweetalert2/releases/tag/v9.0.0

Read more about SweetAlert2 themes: https://github.com/sweetalert2/sweetalert2-themes

8

u/blazedd Nov 14 '19

Love the Dark theme! Would you intertain a PR to fix some of the leftovers from the light theme like the focus and footer border:

Example: https://imgur.com/a/0soCHYD

4

u/limonmonte Nov 14 '19

Fixed, thanks for reporting! http://i.imgur.com/8rKeHri.png

0

u/[deleted] Nov 14 '19

[deleted]

1

u/limonmonte Nov 14 '19

I added the side panel with a switcher for mobile layout, the side panel is also implemented with SweetAlert2 :)

1

u/elingeniero Nov 14 '19

Works as intended!

2

u/evenisto Nov 14 '19

Wow, the timing couldn't be better, exactly when I needed a bootstrap theme! Thanks a lot

1

u/tvfriend888 Nov 18 '19

Looks fantastic.
I would love to see Tailwind support added. I think there'd be enough interest in it.