- version 9.x to latest version
https://github.com/ImreC/nuxt-sweetalert2
Please use vue-sweetalert2 at: https://github.com/avil13/vue-sweetalert2
Use https://sweetalert2.github.io/ in your next project. Modals, toasters, confirmations, you name it. Pass global options to customize the look and feel. Tested and running in production.
Install dependencies:
npm install nuxtjs-sweetalert2
Add nuxtjs-sweetalert2
to modules section of nuxt.config.js
{
modules: [
'nuxtjs-sweetalert2'
]
}
Or pass in global options like this:
{
modules: [
[
'nuxtjs-sweetalert2',
{
confirmButtonColor: '#FFFFFF'
}
]
]
}