1.0.1 • Published 7 years ago
sweetalert2-polymer v1.0.1
<sweet-alert>
- a Polymer wrapper for SweetAlert2
<sweet-alert title="Oops..." text="Something went wrong!" type="error"></sweet-alert>
<script>
document.querySelector('sweet-alert').open()
</script>
Installation
bower install --save sweetalert2-polymer
Usage
<link rel="import" href="bower_components/sweet-alert/sweet-alert.html">
<sweet-alert type="success" title="Awesome"></sweet-alert>