Skip to content

Instantly share code, notes, and snippets.

@AyatoKirishima
Created December 22, 2021 12:58
Show Gist options
  • Save AyatoKirishima/dc7778d463c1555475f0175e64fc90b3 to your computer and use it in GitHub Desktop.
Save AyatoKirishima/dc7778d463c1555475f0175e64fc90b3 to your computer and use it in GitHub Desktop.
SweetAlert First Try
Swal.fire({
title: '<strong>HTML ERROR</strong>',
icon: 'error',
html:
'What\'s missing is your :<br> <li>name</li><li>pseudo</li><li>what else...</li> ',
showCloseButton: true,
})
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
body {
font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Helvetica, Arial, sans-serif;
}
<link href="https://cdn.jsdelivr.net/npm/[email protected]/css/font-awesome.min.css" rel="stylesheet" />
@AyatoKirishima
Copy link
Author

SweetAlert2 Test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment