Nuxt 2 is reaching End-of-Life on June 30th, 2024.

This module is not yet compatible with Nuxt 3

Head over to v2.nuxt.com

sweetalert2

A minimal sweetalert2 module based on vue-sweetalert2 with global options

Nuxt.js

Install dependencies:

npm install nuxt-sweetalert2

Add nuxt-sweetalert2 to modules section of nuxt.config.js

{
  modules: [
    'nuxt-sweetalert2'
  ]
}

Or pass in global options like this:

{
  modules: [
    [
      'nuxt-sweetalert2',
      {
        confirmButtonColor: '#FFFFFF'
      }
    ]
  ]
}

The documentation for sweetalert2, you can find
here.