SweetAlert2 Recipe Gallery - Code Examples for Specific Tasks SweetAlert2 Recipe Gallery - Code Examples for Specific TasksRecipe Gallery A collection of easy-to-digest code examples for specific tasks in about 30 lines of code or less Queue with Progress Steps Bootstrap 5 + custom loader Custom Icon React example React Router example Yes No Cancel Dialog Modal with iframe inside Draw Attention Persistent Dialog Colored Toasts Crop User Image with
Yes No Cancel Dialog - GitHub Pages if (result isConfirmed) { Swal fire('Saved!', '', 'success') } else if (result isDenied) { Swal fire('Changes are not saved', '', 'info') } })
SweetAlert2 + React example SweetAlert2 + React example Here's our official React integration: https: github com sweetalert2 sweetalert2-react-content It allow you to pass JSX TSX as Swal fire params
SweetAlert2 + Laravel example You can now run Swal::fire () anywhere in your Laravel application (controllers, middleware, etc ) to show a SweetAlert2 alert: use SweetAlert2 \ Laravel \ Swal;