Skip to content
A minimal sweetalert2 module based on vue-sweetalert2 with global options
Branch: master
Clone or download
Latest commit eaf07a1 Dec 3, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src Initial Commit Dec 3, 2018
.babelrc Initial Commit Dec 3, 2018
.gitignore Initial commit Dec 3, 2018
LICENSE Initial commit Dec 3, 2018
README.md Updated readme Dec 3, 2018
package.json Initial Commit Dec 3, 2018

README.md

Sweetalert2 for Nuxt.js

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.

Getting started

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.

You can’t perform that action at this time.