nuxt-izitoast

Nuxt module for the izitoast notification library
8,945
Install
npm install nuxt-izitoast
Latest Version:1.0.0
License:MIT
Last Updated:Aug 2, 2019
Links: GitLab  ·  npm
Maintainer: sweetgum-admin

nuxt-izitoast

Nuxt module for the iziToast notification library.

Setup

Install nuxt-izitoast using npm

npm install nuxt-izitoast

or yarn

yarn add nuxt-izitoast

Add the module to your nuxt.config.js:

{
  modules: [
    'nuxt-izitoast'    
  ]
}

You can provide global configuration to iziToast with the izitoast field in nuxt.config.js. For example:

{
  izitoast: {
    position: 'bottomRight',
    transitionIn: 'bounceInLeft',
    transitionOut: 'fadeOutRight',
  }
}

Usage

iziToast will be available as both $izitoast and $notify in your components.

export default {
  name: 'my-component',
  mounted() {
    this.$notify.success({
      title: 'Hooray',
      message: 'I am using iziToast!'
    })
  }
}

Version History

Version Released License
1.0.0 MIT
0.1.2 MIT
0.1.1 MIT
0.1.0 MIT