Answers for "sweetalert 2 documentation"

1

sweetalert2

$ npm install sweetalert2
Posted by: Guest on February-07-2021
1

sweet alert 2

swal("Thank You!", "You clicked the button!", "success");
Posted by: Guest on May-21-2021
0

sweetalert 2 documentation

Swal.fire({
  title: 'Error!',
  text: 'Do you want to continue',
  icon: 'error',
  confirmButtonText: 'Cool'
})
Posted by: Guest on May-19-2021
0

sweetalert2

const { value: email } = await Swal.fire({  title: 'Input email address',  input: 'email',  inputLabel: 'Your email address',  inputPlaceholder: 'Enter your email address'})if (email) {  Swal.fire(`Entered email: ${email}`)}
Posted by: Guest on November-17-2020

Browse Popular Code Answers by Language