JSFiddle - React, Tailwind, and code Playground

HTML

<script src="https://unpkg.com/sweetalert2@7.9.0/dist/sweetalert2.all.js"></script>

JavaScript

swal({
  title: 'NYAN CAT!',
  background: `
    white
    url("https://raw.githubusercontent.com/sweetalert2/sweetalert2.github.io/master/images/nyan-cat.gif")
    center left
    no-repeat
  `
})