Add Sweetalert to dashboard page

I want to add the Sweetalert2 component to a dashboard page. I installed the npm package, imported the Swal function on the page, but it didn’t work.

I don’t know if I need to import the css somewhere. How can I use sweetalert2 in a dashboard page?

This NPM manipulate’s the DOM and therefore can’t be used directly in Velo. You can use this option if you use a Custom Element which is a reusable web component element that you define in a JavaScript file that is either hosted by Wix or hosted on a server that is external to Wix. The custom element is defined using the standard ECMAScript 2015 class syntax. See this simple Link example to get started with Custom Elements.