sweetalert 2 add component to popup code example
Example 1: jquery sweet popup
$.sweetModal.prompt('Can I haz cheezeburger?', 'Can I?', 'Nope', function(val) {
$.sweetModal('You typed: ' + val);
});
Example 2: sweetalert2 example html
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@10"></script>