Resultado de búsqueda
Recipe 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. React example. React Router example. Formik example. Yes/No/Cancel Dialog. Draw Attention / Persistent Dialog.
Showing an alert. After importing the files into your application, you can call the swal function (make sure it's called after the DOM has loaded!) swal("Hello world!"); Preview. If you pass two arguments, the first one will be the modal's title, and the second one its text.
Get started! You can customize SweetAlert to fit your needs. View docs. A beautiful replacement for JavaScript's 'alert'.
Description: Specify the exact amount of buttons and their behaviour. If you use an array, you can set the elements as strings (to set only the text), a list of ButtonOptions, or a combination of both.
A beautiful, responsive, customizable and accessible (WAI-ARIA) replacement for JavaScript's popup boxes, supported fork of sweetalert. Latest version: 11.12.1, last published: 6 days ago. Start using sweetalert2 in your project by running `npm i sweetalert2`.
SweetAlert2 automatically centers itself on the page and looks great no matter if you're using a desktop computer, mobile or tablet. It's even highly customizeable, as you can see below! More examples. swal ( 'Any fool can use a computer') swal ( 'The Internet?' , 'That thing is still around?' , 'question' ) An error message.
GitHub - sweetalert2/sweetalert2: A beautiful, responsive, highly customizable and accessible (WAI-ARIA) replacement for JavaScript's popup boxes. Zero dependencies. 🇺🇦.