Skip to content
A Vue JS wrapper around Noty
JavaScript HTML Vue CSS
Branch: master
Clone or download
renoguyon Merge pull request #7 from itanka9/master
.show() returns noty instance
Latest commit 9c7e7ec Jul 30, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
build Extract and build css Jun 9, 2017
dev Extract and build css Jun 9, 2017
dist Return Noty instance when method is invoked Jan 7, 2018
src .show() returns noty instance May 25, 2018
.babelrc Initial commit Jun 8, 2017
.editorconfig Initial commit Jun 8, 2017
.gitignore Updated readme Jan 10, 2018
package-lock.json 0.1.3 Jan 10, 2018
package.json 0.1.3 Jan 10, 2018


A Vue JS wrapper around Noty. Developped for Vue 2.

Getting Started

Install using npm:

$ npm install vuejs-noty

Import and register Vue plugin:

import Vue from 'vue'
import VueNoty from 'vuejs-noty'


Import noty styles

Import stylesheet in your vue / js components:

import 'vuejs-noty/dist/vuejs-noty.css'

Or, import styles in your less / scss stylesheet:

@import '~vuejs-noty/dist/vuejs-noty.css';


In your Vue.js components, simply call one of these methods:

// Basic alert
this.$"Hello world!")

// Success notification
this.$noty.success("Your profile has been saved!")

// Error message
this.$noty.error("Oops, something went wrong!")

// Warning
this.$noty.warning("Please review your information.")

// Basic alert
this.$"New version of the app is available!")

All of these methods will return a Noty object instance, so you can use available API methods.


Config defaults

You can set a default configuration object when registering the plugin. Example:

Vue.use(VueNoty, {
  timeout: 4000,
  progressBar: true,
  layout: 'topCenter'

Config override

All of the alert methods can accept a config object as second parameter if you need to override the defaults. Example:

this.$"Hey! Something very important here...", {
  killer: true,
  timeout: 6000,
  layout: 'topRight'

For more information about available configuration properties, please read Noty's documentation.

You can’t perform that action at this time.